public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); _fixture = new Fixture(); _applications = new ApplicationRepository(_context.Connection); var executor = new SqlProcedureExecutor(Settings.Default.MainConnectionString); _stateRepository = new StateRepository(executor); _editor = new ApplicationEditor(_context.Connection, executor, TestConstants.DefaultStateId); }
public void TestInitialize() { _context = new DbTestContext(Settings.Default.MainConnectionString); _fixture = new Fixture(); _now = _fixture.Create<DateTimeOffset>(); _executor = new SqlProcedureExecutor(Settings.Default.MainConnectionString); DateTimeProvider.SetProvider(new DateTimeProviderStub(_now)); _awbs = new AwbRepository(_context.Connection); _applicationEditor = new ApplicationEditor(_context.Connection, _executor, TestConstants.DefaultStateId); }