Example #1
0
        public async Task TestBaseServiceDbDelte_ShouldDeleteAsync()
        {
            WikiPassageService service = new WikiPassageService();
            await service.AddAsync(BuildOneEntity());

            WikiPassage passageToFind = service.GetById(1);

            await service.DeleteByIdAsync(1);

            WikiPassage passage = service.GetById(1);

            Assert.NotNull(passageToFind);
            Assert.Null(passage);
        }