Exemplo n.º 1
0
        public void Find_By_Id()
        {
            var underTest = new ReviewRepository();
            var result    = underTest.FindById(1);

            Assert.Equal(1, result.Id);
            Assert.Equal("Nike", result.title);
        }
Exemplo n.º 2
0
        public void FindById_Returns_Correct_Review()
        {
            var underTest = new ReviewRepository();
            var result    = underTest.FindById(1);

            Assert.Equal(1, result.ID);
            Assert.Equal("Venom", result.Title);
        }
Exemplo n.º 3
0
        public void FindById_Returns_Correct_Review()
        {
            var underTest = new ReviewRepository();

            var result = underTest.FindById(2);

            Assert.Equal(2, result.Id);
            //Assert.Equal("Moana", result.Name);
        }
        public void FindById_Returns_Correct_Review()
        {
            var underTest = new ReviewRepository();

            var result = underTest.FindById(1);

            Assert.Equal(1, result.Id);
            Assert.Equal("Mortarion", result.Name);
        }
Exemplo n.º 5
0
        public void FindById_Returns_Correct_Castle()
        {
            var sut = new ReviewRepository();

            var result = sut.FindById(1);

            Assert.Equal(1, result.ID);
            Assert.Equal("Burg Eltz", result.Title);
        }
Exemplo n.º 6
0
 public Review GetDetail(int id)
 {
     return(repository.FindById(id));
 }