示例#1
0
        public void Before_the_tests()
        {
            _lookupRepository = new LookupDataRepository(_databaseService.DbConnectionHelper, _cacheHelper);
            _providerTypeId1  = 1;
            _providerTypeId2  = 2;
            _organisationStatusId1WithProviderTypeId1 = 10;
            _organisationStatusId2WithProviderTypeId1 = 20;
            _organisationStatusId3WithProviderTypeId1 = 30;
            _organisationStatusId4WithProviderTypeId2 = 100;
            _cacheHelper.PurgeAllCaches();

            OrganisationStatusHandler.InsertRecord(new OrganisationStatusModel {
                Id = _organisationStatusId1WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x"
            });
            OrganisationStatusHandler.InsertRecord(new OrganisationStatusModel {
                Id = _organisationStatusId2WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x"
            });
            OrganisationStatusHandler.InsertRecord(new OrganisationStatusModel {
                Id = _organisationStatusId3WithProviderTypeId1, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x"
            });
            OrganisationStatusHandler.InsertRecord(new OrganisationStatusModel {
                Id = _organisationStatusId4WithProviderTypeId2, CreatedAt = DateTime.Now, CreatedBy = "system", Status = "x"
            });
            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"
            });
            ProviderTypeOrganisationStatusHandler.InsertRecord(new ProviderTypeOrganisationStatusModel {
                Id = 1, OrganisationStatusId = _organisationStatusId1WithProviderTypeId1, ProviderTypeId = _providerTypeId1
            });
            ProviderTypeOrganisationStatusHandler.InsertRecord(new ProviderTypeOrganisationStatusModel {
                Id = 2, OrganisationStatusId = _organisationStatusId2WithProviderTypeId1, ProviderTypeId = _providerTypeId1
            });
            ProviderTypeOrganisationStatusHandler.InsertRecord(new ProviderTypeOrganisationStatusModel {
                Id = 3, OrganisationStatusId = _organisationStatusId3WithProviderTypeId1, ProviderTypeId = _providerTypeId1
            });
            ProviderTypeOrganisationStatusHandler.InsertRecord(new ProviderTypeOrganisationStatusModel {
                Id = 4, OrganisationStatusId = _organisationStatusId4WithProviderTypeId2, ProviderTypeId = _providerTypeId2
            });
        }
示例#2
0
 public void Tear_down()
 {
     ProviderTypeOrganisationStatusHandler.DeleteAllRecords();
     ProviderTypeHandler.DeleteAllRecords();
     OrganisationStatusHandler.DeleteAllRecords();
 }