public HttpResponseMessage GetAll()
        {
            List <CMSTemplate>          templates     = cmsService.GetAll();
            ItemsResponse <CMSTemplate> itemsResponse = new ItemsResponse <CMSTemplate>();

            itemsResponse.Items = templates;
            return(Request.CreateResponse(HttpStatusCode.OK, itemsResponse));
        }
예제 #2
0
        public async Task Should_Get_Contents()
        {
            var output = await _cmsService.GetAll();

            output.Items.Count.ShouldBe(1);
        }