public void TestPostRepo()
        {
            //Arrange
            var postRepoTest = new FavoriteMapper();

            //Act
            var favorite = postRepoTest.GetById(postId, userId);

            //Assert
            Assert.That(favorite.PostId,Is.EqualTo(124462), "ID");
            Assert.That(favorite.UserId,Is.EqualTo(246), "UserID");
        }
Ejemplo n.º 2
0
 public PostRepository(FavoriteMapper mapper)
 {
     _mapper = mapper;
 }