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); }
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)); }
public Response FindById(int id) { IPersonForResponse doctor = m_InformationFinder.FindById(id); if (doctor == null) { return(HttpStatusCode.NotFound); } return(AsJson(doctor)); }