|
1 | | -namespace MyTested.AspNetCore.Mvc.Builders.Contracts.Data.DistributedCache |
| 1 | +namespace MyTested.AspNetCore.Mvc.Builders.Contracts.Data |
2 | 2 | { |
3 | 3 | using System; |
4 | 4 | using System.Collections.Generic; |
5 | 5 | using Microsoft.Extensions.Caching.Distributed; |
| 6 | + using Builders.Contracts.Data.DistributedCache; |
6 | 7 |
|
7 | 8 | /// <summary> |
8 | 9 | /// Used for building mocked <see cref="IDistributedCache"/>. |
9 | 10 | /// </summary> |
10 | | - public interface IDistributedCacheBuilder |
| 11 | + public interface IWithDistributedCacheBuilder |
11 | 12 | { |
12 | 13 | /// <summary> |
13 | 14 | /// Adds cache entry to the mocked <see cref="IDistributedCache"/>. |
14 | 15 | /// </summary> |
15 | 16 | /// <param name="key">Key of the cache entry.</param> |
16 | 17 | /// <param name="value">Value of the cache entry.</param> |
17 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
18 | | - IAndDistributedCacheBuilder WithEntry(string key, byte[] value); |
| 18 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 19 | + IAndWithDistributedCacheBuilder WithEntry(string key, byte[] value); |
19 | 20 |
|
20 | 21 | /// <summary> |
21 | 22 | /// Adds cache entry to the mocked <see cref="IDistributedCache"/>. |
22 | 23 | /// </summary> |
23 | 24 | /// <param name="key">Key of the cache entry.</param> |
24 | 25 | /// <param name="value">String value of the cache entry.</param> |
25 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
26 | | - IAndDistributedCacheBuilder WithEntry(string key, string value); |
| 26 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 27 | + IAndWithDistributedCacheBuilder WithEntry(string key, string value); |
27 | 28 |
|
28 | 29 | /// <summary> |
29 | 30 | /// Adds cache entry to the mocked <see cref="IDistributedCache"/>. |
30 | 31 | /// </summary> |
31 | 32 | /// <param name="key">Key of the cache entry.</param> |
32 | 33 | /// <param name="value">Value of the cache entry.</param> |
33 | 34 | /// <param name="options"><see cref="DistributedCacheEntryOptions"/> of the cache entry.</param> |
34 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
35 | | - IAndDistributedCacheBuilder WithEntry(string key, byte[] value, DistributedCacheEntryOptions options); |
| 35 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 36 | + IAndWithDistributedCacheBuilder WithEntry(string key, byte[] value, DistributedCacheEntryOptions options); |
36 | 37 |
|
37 | 38 | /// <summary> |
38 | 39 | /// Adds cache entry to the mocked <see cref="IDistributedCache"/>. |
39 | 40 | /// </summary> |
40 | 41 | /// <param name="key">Key of the cache entry.</param> |
41 | 42 | /// <param name="value">String value of the cache entry.</param> |
42 | 43 | /// <param name="options"><see cref="DistributedCacheEntryOptions"/> of the cache entry.</param> |
43 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
44 | | - IAndDistributedCacheBuilder WithEntry(string key, string value, DistributedCacheEntryOptions options); |
| 44 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 45 | + IAndWithDistributedCacheBuilder WithEntry(string key, string value, DistributedCacheEntryOptions options); |
45 | 46 |
|
46 | 47 | /// <summary> |
47 | 48 | /// Adds cache entry to the mocked <see cref="IDistributedCache"/>. |
48 | 49 | /// </summary> |
49 | 50 | /// <param name="distributedCacheEntryBuilder">Builder for creating cache entry.</param> |
50 | 51 | /// <returns>The same <see cref="IDistributedCacheEntryKeyBuilder"/>.</returns> |
51 | | - IAndDistributedCacheBuilder WithEntry(Action<IDistributedCacheEntryKeyBuilder> distributedCacheEntryBuilder); |
| 52 | + IAndWithDistributedCacheBuilder WithEntry(Action<IDistributedCacheEntryKeyBuilder> distributedCacheEntryBuilder); |
52 | 53 |
|
53 | 54 | /// <summary> |
54 | 55 | /// Adds cache entries to the mocked <see cref="IDistributedCache"/>. |
55 | 56 | /// </summary> |
56 | 57 | /// <param name="entries">Dictionary of cache entries.</param> |
57 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
58 | | - IAndDistributedCacheBuilder WithEntries(IDictionary<string, byte[]> entries); |
| 58 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 59 | + IAndWithDistributedCacheBuilder WithEntries(IDictionary<string, byte[]> entries); |
59 | 60 |
|
60 | 61 | /// <summary> |
61 | 62 | /// Adds cache entries to the mocked <see cref="IDistributedCache"/>. |
62 | 63 | /// </summary> |
63 | 64 | /// <param name="entries">Dictionary of cache entries.</param> |
64 | | - /// <returns>The same <see cref="IAndDistributedCacheBuilder"/>.</returns> |
65 | | - IAndDistributedCacheBuilder WithEntries(IDictionary<string, string> entries); |
| 65 | + /// <returns>The same <see cref="IAndWithDistributedCacheBuilder"/>.</returns> |
| 66 | + IAndWithDistributedCacheBuilder WithEntries(IDictionary<string, string> entries); |
66 | 67 | } |
67 | 68 | } |
0 commit comments