Пример #1
0
        private async Task AssertRemoveDomainAsync(TDomain domainToRemove)
        {
            var removedDomain = await Repository.RemoveAsync(domainToRemove).ConfigureAwait(false);

            RepositoryTestCase.AssertExpectedVsActualValues(domainToRemove, removedDomain);

            var foundCategory = await FindDomainByIdAsync(domainToRemove).ConfigureAwait(false);

            RepositoryTestCase.AssertNegativeCaseOnResult(foundCategory);
        }
Пример #2
0
        private async Task <TDomain> AssertInsertedDomainAsync(TDomain expectedDomain)
        {
            var insertedDomain = await Repository.AddAsync(expectedDomain).ConfigureAwait(false);

            RepositoryTestCase.AssertExpectedVsActualValues(expectedDomain, insertedDomain);

            var foundDomain = await AssertFindDomainByIdAsync(insertedDomain);

            return(foundDomain);
        }