public HttpResponseMessage GetAll() { List <CMSTemplate> templates = cmsService.GetAll(); ItemsResponse <CMSTemplate> itemsResponse = new ItemsResponse <CMSTemplate>(); itemsResponse.Items = templates; return(Request.CreateResponse(HttpStatusCode.OK, itemsResponse)); }
public async Task Should_Get_Contents() { var output = await _cmsService.GetAll(); output.Items.Count.ShouldBe(1); }