public void PostIntegrationTwiiter_Delete_ShouldBeOk() { _service.Delete(_result); Post resultado = _repository.Get(_result.Id); resultado.Should().BeNull(); }
public void TwitterService_Get_ShouldBeOk() { Post post = new Post() { Id = 1, Message = "tchaaaaaaau!", PostDate = DateTime.Now.AddMinutes(-15), }; post.GetDisplayPostDate(); _twitterService.Setup(ts => ts.GetTweet(It.IsAny <long>())).Returns(_tweet.Object); Post postReturn = _repository.Get(post.Id); _twitterService.Verify(x => x.GetTweet(post.Id)); postReturn.Should().NotBeNull(); }