Пример #1
0
        //property isDeleted == true where post Id == 5
        public async Task GetAsync_should_return_null_when_postIsDeleted_true()
        {
            //arrange
            var post = await TestDataInitializer.InitOneDeletedPostAsync(_context);

            //act
            var result = await _postRepository.GetAsync(post.Id);

            //assert
            Assert.Null(result);
        }