public ServiceAgentTestBase() { _startup = new TestStartup(); _configureAppAction = (app => { _app = app; _hostingEnv = app.ApplicationServices.GetRequiredService <IHostingEnvironment>(); _startup.Configure(app, _hostingEnv); }); _configureServicesAction = ConfigureServices; }
public ServiceAgentTestBase() { var appEnv = PlatformServices.Default.Application; _startup = new TestStartup(); _configureAppAction = (app => { _app = app; _hostingEnv = app.ApplicationServices.GetRequiredService<IHostingEnvironment>(); _startup.Configure(app, _hostingEnv); }); _configureServicesAction = ConfigureServices; }
public TokenHelperTests() { _startup = new TestStartup(); _cacheKey = "clientIdclientSecretscopehttp://localhost/api/oauth/token"; _settings = new ServiceSettings { Scheme = HttpSchema.Http, Host = "localhost", Path = "api", OAuthPathAddition = "oauth/token", OAuthClientId = "clientId", OAuthClientSecret = "clientSecret", OAuthScope = "scope" }; }