public ModelServiceFactory( IApiClientFactory apiClientFactory, IHostCacheFactory hostCacheFactory, IAvatarProvider avatarProvider) { this.apiClientFactory = apiClientFactory; this.hostCacheFactory = hostCacheFactory; this.avatarProvider = avatarProvider; }
public ModelServiceFactory( IApiClientFactory apiClientFactory, IHostCacheFactory hostCacheFactory, IAvatarProvider avatarProvider, [Import(AllowDefault = true)] JoinableTaskContext joinableTaskContext) { this.apiClientFactory = apiClientFactory; this.hostCacheFactory = hostCacheFactory; this.avatarProvider = avatarProvider; JoinableTaskContext = joinableTaskContext ?? ThreadHelper.JoinableTaskContext; }
public RepositoryHostFactory( IApiClientFactory apiClientFactory, IHostCacheFactory hostCacheFactory, ILoginCache loginCache, IAvatarProvider avatarProvider, ITwoFactorChallengeHandler twoFactorChallengeHandler) { this.apiClientFactory = apiClientFactory; this.hostCacheFactory = hostCacheFactory; this.loginCache = loginCache; this.avatarProvider = avatarProvider; this.twoFactorChallengeHandler = twoFactorChallengeHandler; }
static ModelServiceFactory CreateTarget( IHostCacheFactory hostCacheFactory = null) { var apiClientFactory = Substitute.For <IApiClientFactory>(); var avatarProvider = Substitute.For <IAvatarProvider>(); hostCacheFactory = hostCacheFactory ?? Substitute.For <IHostCacheFactory>(); return(new ModelServiceFactory( apiClientFactory, hostCacheFactory, avatarProvider)); }
public RepositoryHostFactory( IApiClientFactory apiClientFactory, IHostCacheFactory hostCacheFactory, ILoginManager loginManager, ILoginCache loginCache, IAvatarProvider avatarProvider, IUsageTracker usage) { this.apiClientFactory = apiClientFactory; this.hostCacheFactory = hostCacheFactory; this.loginManager = loginManager; this.loginCache = loginCache; this.avatarProvider = avatarProvider; this.usage = usage; }
static ModelServiceFactory CreateTarget( IHostCacheFactory hostCacheFactory = null) { var apiClientFactory = Substitute.For <IApiClientFactory>(); var graphQLClientFactory = Substitute.For <IGraphQLClientFactory>(); var avatarProvider = Substitute.For <IAvatarProvider>(); hostCacheFactory = hostCacheFactory ?? Substitute.For <IHostCacheFactory>(); return(new ModelServiceFactory( apiClientFactory, hostCacheFactory, avatarProvider, new JoinableTaskContext())); }