public void BeforeEach() { // setup mocks mockDataRepository = MoqHelpers.CreateMockDataRepository(); // sut scopeBusinessLogic = new WebUI.BusinessLogic.Services.ScopeBusinessLogic(mockDataRepository.Object); }
public void BeforeEach() { // setup mocks mockDataRepository = MoqHelpers.CreateMockDataRepository(); // setup data DateTime currentPrivateSnapshotDate = SectorTypes.Private.GetAccountingStartDate(); DateTime currentPublicSnapshotDate = SectorTypes.Public.GetAccountingStartDate(); testOrgs = new List <Organisation>(); testOrgs.Add(CreateOrgWithExistingScopeForAllYears(1, SectorTypes.Private, currentPrivateSnapshotDate)); testOrgs.Add(CreateOrgWithExistingScopeForAllYears(2, SectorTypes.Public, currentPublicSnapshotDate)); testOrgs.Add(CreateOrgWithMissingScopesForAllYears(3, SectorTypes.Private)); testOrgs.Add(CreateOrgWithMissingScopesForAllYears(4, SectorTypes.Public)); testOrgs.Add(CreateOrgWithUnknownScopesForAllYears(5, SectorTypes.Private, currentPrivateSnapshotDate)); testOrgs.Add(CreateOrgWithUnknownScopesForAllYears(6, SectorTypes.Public, currentPublicSnapshotDate)); mockDataRepository.SetupGetAll(testOrgs); // sut scopeBusinessLogic = new WebUI.BusinessLogic.Services.ScopeBusinessLogic(mockDataRepository.Object); }