public void Before_the_tests() { _lookupRepository = new LookupDataRepository(_databaseService.DbConnectionHelper, _cacheHelper); _providerTypeId1 = 1; _providerTypeId2 = 2; _organisationTypeId1WithProviderTypeId1 = 10; _organisationTypeId2WithProviderTypeId1 = 20; _organisationTypeId3WithProviderTypeId1 = 30; _organisationTypeId4WithProviderTypeId2 = 100; _cacheHelper.PurgeAllCaches(); OrganisationTypeHandler.InsertRecord(new OrganisationTypeModel { Id = _organisationTypeId1WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", Type = "a" }); OrganisationTypeHandler.InsertRecord(new OrganisationTypeModel { Id = _organisationTypeId2WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", Type = "b" }); OrganisationTypeHandler.InsertRecord(new OrganisationTypeModel { Id = _organisationTypeId3WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", Type = "c" }); OrganisationTypeHandler.InsertRecord(new OrganisationTypeModel { Id = _organisationTypeId4WithProviderTypeId2, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", Type = "d" }); ProviderTypeHandler.InsertRecord(new ProviderTypeModel { Id = _providerTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", ProviderType = "a" }); ProviderTypeHandler.InsertRecord(new ProviderTypeModel { Id = _providerTypeId2, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x", ProviderType = "b" }); ProviderTypeOrganisationTypeHandler.InsertRecord(new ProviderTypeOrganisationTypeModel { Id = 1, OrganisationTypeId = _organisationTypeId1WithProviderTypeId1, ProviderTypeId = _providerTypeId1 }); ProviderTypeOrganisationTypeHandler.InsertRecord(new ProviderTypeOrganisationTypeModel { Id = 2, OrganisationTypeId = _organisationTypeId2WithProviderTypeId1, ProviderTypeId = _providerTypeId1 }); ProviderTypeOrganisationTypeHandler.InsertRecord(new ProviderTypeOrganisationTypeModel { Id = 3, OrganisationTypeId = _organisationTypeId3WithProviderTypeId1, ProviderTypeId = _providerTypeId1 }); ProviderTypeOrganisationTypeHandler.InsertRecord(new ProviderTypeOrganisationTypeModel { Id = 4, OrganisationTypeId = _organisationTypeId4WithProviderTypeId2, ProviderTypeId = _providerTypeId2 }); }
public void Tear_down() { ProviderTypeOrganisationTypeHandler.DeleteAllRecords(); ProviderTypeHandler.DeleteAllRecords(); OrganisationTypeHandler.DeleteAllRecords(); }