public async Task BeforeEachTest() { var connectionString = EnvironmentVariablesProvider.GetVariable("TinyCommerce_IntegrationTest_ConnectionString"); if (connectionString == null) { throw new ApplicationException($"You must provide connection string."); } Logger = Substitute.For <ILogger>(); EmailSender = Substitute.For <IEmailSender>(); CustomersStartup.Initialize(connectionString, Logger, EmailSender); CustomersModule = new CustomersModule(); await CustomersModule.ExecuteCommandAsync(new PurgeModuleCommand()); }
public void AfterEachTest() { CustomersStartup.Stop(); }