Beispiel #1
0
            public async Task WhenGetPostsByReceiverIdGetsCalled()
            {
                Setup();

                _posts = new Fixture().CreateMany <Post>().ToList();
                PostsRepository.Setup(repository => repository.GetPostsByReceiverId(It.IsAny <Guid>(), It.IsAny <int>()))
                .ReturnsAsync(_posts);

                _result = await PostsService.GetPostsByReceiverId(_userId, Count);
            }