public void FindById_Returns_Response_For_Known()
        {
            // Arrange
            m_Finder.FindById(m_ModelOne.Id).Returns(m_ModelOne);

            // Act
            Response actual = m_Sut.FindById(m_ModelOne.Id);

            // Assert
            Assert.AreEqual(HttpStatusCode.OK,
                            actual.StatusCode);
        }
Exemplo n.º 2
0
        public Response FindById(Guid id)
        {
            IGameReviewModel model = m_InformationFinder.FindById(id);

            return(model == null
                       ? HttpStatusCode.NotFound
                       : AsJson(model));
        }
        public Response FindById(int id)
        {
            ISlotForResponse slot = m_InformationFinder.FindById(id);

            if (slot == null)
            {
                return(HttpStatusCode.NotFound);
            }

            return(AsJson(slot));
        }
Exemplo n.º 4
0
        public Response FindById(int id)
        {
            IPersonForResponse doctor = m_InformationFinder.FindById(id);

            if (doctor == null)
            {
                return(HttpStatusCode.NotFound);
            }

            return(AsJson(doctor));
        }