protected BaseScenario(TestServerFixture testServerFixture) { TestServer = testServerFixture.Server; HttpClient = testServerFixture.CreateClient(); DynamoDbContext = TestServer.Services.GetRequiredService <IDynamoDBContext>(); SqsClient = TestServer.Services.GetRequiredService <IAmazonSQS>(); }
public FileStoreTests(TestServerFixture <FileStoreStartup> factory) { _client = factory.CreateClient(new WebApplicationFactoryClientOptions { HandleCookies = false }); var options = factory.Services.GetService <IOptions <FileStoreOptions> >().Value; _logFilePath = Path.Combine(Directory.GetCurrentDirectory(), options.SavePath, options.FileName); if (File.Exists(_logFilePath)) { File.Delete(_logFilePath); } }
public ControllerTestBase(TestServerFixture testServerFixture) { TestServerFixture = testServerFixture; HttpClient = testServerFixture.CreateClient(); }