Beispiel #1
0
        public void FindById_Returns_Response_For_Known_Id()
        {
            // Arrange
            m_Query.FindById(m_EntityOne.Id).Returns(m_EntityOne);

            // Act
            IGameReviewModel actual = m_Sut.FindById(m_EntityOne.Id);

            // Assert
            Assert.NotNull(actual);
            Assert.AreEqual(m_EntityOne.Id,
                            actual.Id);
        }
        public IGameReviewModel FindById(Guid id)
        {
            IGameReview review = m_Query.FindById(id);

            return(review == null
                       ? null
                       : new GameReviewModel(review));
        }