public void List_Returns_Response_When_Called()
        {
            // Arrange
            m_Finder.List().Returns(m_Responses);

            // Act
            Response actual = m_Sut.List();

            // Assert
            Assert.AreEqual(HttpStatusCode.OK,
                            actual.StatusCode);
        }
        public Response List(int doctorId,
                             string date,
                             string status)
        {
            // todo Finder should return SlorForResponse
            IEnumerable <ISlot> list = m_InformationFinder.List(doctorId,
                                                                date,
                                                                status);

            IEnumerable <SlotForResponse> slots = list.Select(x => new SlotForResponse(x));

            return(AsJson(slots));
        }
        public Response List()
        {
            IEnumerable <ISlotForResponse> slots = m_InformationFinder.List();

            return(AsJson(slots));
        }
Exemplo n.º 4
0
        public Response List()
        {
            IEnumerable <IPersonForResponse> doctors = m_InformationFinder.List();

            return(AsJson(doctors));
        }
Exemplo n.º 5
0
        public Response List()
        {
            IEnumerable <IGameReviewModel> models = m_InformationFinder.List();

            return(AsJson(models));
        }