Example #1
0
        private async Task <bool> IsDatabaseInExpectedState()
        {
            var lastProcessedEventId = await EventTestsRepository.GetLastProcessedEventId <long>("EmploymentCheckCompleteEvent");

            if (lastProcessedEventId != 4)
            {
                return(false);
            }

            var numberOfEmploymentChecks = await EventTestsRepository.GetNumberOfEmploymentChecks();

            if (numberOfEmploymentChecks != 2)
            {
                return(false);
            }

            return(true);
        }