public void IgnoresOrgsWhereAllScopesAreSet(int expectedIgnoredId)
        {
            // act
            HashSet <OrganisationMissingScope> actualMissingOrgScopes = scopeBusinessLogic.FindOrgsWhereScopeNotSet();

            // assert
            OrganisationMissingScope actualMissingEntry = actualMissingOrgScopes
                                                          .Where(missing => missing.Organisation.OrganisationId == expectedIgnoredId)
                                                          .FirstOrDefault();

            Assert.IsNull(actualMissingEntry, "Expected to return organisations who have missing scopes");
        }
        public void FindsOrgsWhereScopeIsUnknown(int expectedUnknownOrgId, SectorTypes testSector)
        {
            // act
            HashSet <OrganisationMissingScope> actualMissingOrgScopes = scopeBusinessLogic.FindOrgsWhereScopeNotSet();

            // assert
            OrganisationMissingScope actualMissingEntry = actualMissingOrgScopes
                                                          .Where(missing => missing.Organisation.OrganisationId == expectedUnknownOrgId)
                                                          .FirstOrDefault();

            Assert.IsNotNull(actualMissingEntry, "Expected to find organisations who have unknown scopes");

            DateTime   currentSnapshotDate = testSector.GetAccountingStartDate();
            List <int> testYears           = GetAllSnapshotYearsForSector(currentSnapshotDate);

            foreach (int testYear in testYears)
            {
                Assert.IsTrue(actualMissingEntry.MissingSnapshotYears.Contains(testYear), "Expected missing year");
            }
        }