Example #1
0
        public void TestPostRepo()
        {
            //Arrange
            var postRepoTest = new PostRepository();

            //Act
            //var contains = pfDetails.GetPfEmployerControlSoFar(1);
            var getPostById = postRepoTest.GetById(28894151, );

            //Assert
            Assert.That(getPostById,Is.EqualTo(45325), "It's not as expected");
        }
        public void TestPostRepo()
        {
            //Mock user object
            var moqPost = new Mock<DetailPost>();
            //Arrange
            var postRepoTest = new PostRepository(new Portfolie_2.DataMapper.FavoriteMapper());

            //Act
            int postId = 45325;
            int userId = 2975;
            var getPostById = postRepoTest.GetById(postId, userId, 10, 0);

            //Assert
            Assert.That(getPostById,Is.EqualTo(45325), "It's not as expected");
        }