コード例 #1
0
        private async Task <bool> IsDatabaseInExpectedState()
        {
            var lastProcessedEventId = await EventTestsRepository.GetLastProcessedEventId <long>(EventName);

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

            var numberOfAgreements = await EventTestsRepository.GetNumberOfEmployerAgreements();

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

            return(true);
        }