Пример #1
0
 public static IReturnValueArgumentValidationConfiguration <Task <CacheValue <T> > > CallToGetAsyncTyped <T>(this IEasyCachingProviderBase cachingProvider) =>
 A.CallTo(() => cachingProvider.GetAsync <T>(A <string> ._));
Пример #2
0
 public static IReturnValueArgumentValidationConfiguration <Task <Object> > CallToGetAsync <T>(this IEasyCachingProviderBase cachingProvider) =>
 A.CallTo(() => cachingProvider.GetAsync(A <string> ._, typeof(T)));
Пример #3
0
 public static IReturnValueArgumentValidationConfiguration <Task <CacheValue <T> > > CallToGetAsyncWithDataRetriever <T>(this IEasyCachingProviderBase cachingProvider) =>
 A.CallTo(() => cachingProvider.GetAsync <T>(A <string> ._, A <Func <Task <T> > > ._, A <TimeSpan> ._));