public TestBootstrapper(ILogger logger, IAppConfiguration appConfig, LoggingLevelSwitch levelSwitch, IHostingEnvironment env, ClaimsPrincipal principal, IIdentityServiceProvider identityServiceProvider = null, IIdPSearchProvider idPSearchProvider = null) : base(logger, appConfig, levelSwitch, env, null) { _principal = principal; _identityServiceProvider = identityServiceProvider; _idPSearchProvider = idPSearchProvider; }
public Browser GetBrowser(ClaimsPrincipal principal, string storageProvider, IIdentityServiceProvider identityServiceProvider = null, IIdPSearchProvider idPSearchProvider = null) { var appConfiguration = new AppConfiguration { StorageProvider = storageProvider, ConnectionStrings = ConnectionStrings, IdentityServerConfidentialClientSettings = new IdentityServerConfidentialClientSettings { Authority = "http://localhost", ClientId = "test", ClientSecret = "test", Scopes = new[] { "fabric/authorization.read", "fabric/authorization.write", "fabric/authorization.manageclients" } }, DefaultPropertySettings = DefaultPropertySettings, MigrateDuplicateGroups = false }; var hostingEnvironment = new Mock <IHostingEnvironment>(); Bootstrapper = new TestBootstrapper(new Mock <ILogger>().Object, appConfiguration, new LoggingLevelSwitch(), hostingEnvironment.Object, principal, identityServiceProvider, idPSearchProvider); return(new Browser(Bootstrapper, context => { context.HostName("testhost"); context.Header("Content-Type", "application/json"); context.Header("Accept", "application/json"); })); }
public IdPSearchService(IIdPSearchProvider idPSearchProvider) { _idPSearchProvider = idPSearchProvider; }