Пример #1
0
        private async Task <bool> IsDatabaseInExpectedState()
        {
            var lastProcessedEventId = await EventTestsRepository.GetLastProcessedEventId <string>("PeriodEnd-Payment");

            if (lastProcessedEventId != "PERIOD4")
            {
                return(false);
            }

            var numberOfPayments = await EventTestsRepository.GetNumberOfPayments();

            if (numberOfPayments != 7)
            {
                return(false);
            }

            return(true);
        }