Example #1
0
        public async Task NotReturnsNullIfPostPresent()
        {
            var request = new GetAllPosts();
            var handler = new GetAllPostsHandler(_mockPostRepository.Object);
            var result  = await handler.Handle(request, CancellationToken.None);

            Assert.NotNull(result);
        }
Example #2
0
        public WhenRepositoryIsEmpty()
        {
            GetAllPostsHandler handler = GetAllPostsHandlerTests.CreateHandler();

            _results = handler.Handle(new GetAllPostsRequest());
        }
Example #3
0
 public IfPassedAnEmptyRequest()
 {
     _handler = GetAllPostsHandlerTests.CreateHandler();
 }