Пример #1
0
        public async Task CountAsyncReturnsValidContactsCount()
        {
            int expectedTotalRecords = _dbContext.Contacts.Count(x => !x.IsDeleted);

            //get Contact entity from repo using contactId
            int repoContactsCount = await _contactRepository.CountAsync();

            Assert.Equal(expectedTotalRecords, repoContactsCount);
        }