public void StartUp() { _options = TestDatabaseProvider.CreateMsSQLDatabaseOptions(); using (var context = new OnderhoudBeheerContext(_options, true)) { // recreate the database } }
public void Init() { // Use InMemory database for testing, records are not removed afterwards from Local Database //_options = TestDatabaseProvider.CreateInMemoryDatabaseOptions(); _options = TestDatabaseProvider.CreateMsSQLDatabaseOptions(); using (var context = new GarageAdministratieContext(_options, true)) { } _rdwIntegrationServiceAgent = new RdwIntegrationServiceAgentMock(); _rdwIntegrationServiceExceptionAgent = new RdwIntegrationServiceExceptionAgent(); }
public void Initialize() { // Use InMemory database for testing, records are not removed afterwards from Local Database //_options = TestDatabaseProvider.CreateInMemoryDatabaseOptions(); _options = TestDatabaseProvider.CreateMsSQLDatabaseOptions(); using (var context = new OnderhoudBeheerContext(_options, true)) { // recreate the database } _validCreateOnderhoudCommands = new List <CreateOnderhoudCommand> { new CreateOnderhoudCommand { Kenteken = "11-AA-ZZ", Kilometerstand = 13000, HasApk = true, OnderhoudsBeschrijving = "Beide achterlichten vervangen", OpdrachtAangemaakt = DateTime.UtcNow, Bestuurder = "Max", TelefoonNrBestuurder = "12893712983" }, new CreateOnderhoudCommand { Kenteken = "ZZ-111-B", Kilometerstand = 200, HasApk = false, OnderhoudsBeschrijving = "Accu vervangen", OpdrachtAangemaakt = DateTime.UtcNow, Bestuurder = "Rob", TelefoonNrBestuurder = "013-11213-1-3" }, new CreateOnderhoudCommand { Kenteken = "RR-01-BB", Kilometerstand = 600, HasApk = false, OnderhoudsBeschrijving = "Koppakking vervangen", OpdrachtAangemaakt = DateTime.UtcNow, Bestuurder = "Wouter", TelefoonNrBestuurder = "+49 123 312 123" }, }; }
public void Init() { // Use InMemory database for testing, records are not removed afterwards from Local Database //_options = TestDatabaseProvider.CreateInMemoryDatabaseOptions(); _options = TestDatabaseProvider.CreateMsSQLDatabaseOptions(); }