public void Get_all_items_should_return_correct_count() { var expectedCount = MockItems.Count(); var result = _applicationServices.GetAllItems().Count; Assert.That(expectedCount == result); }
public IHttpActionResult GetAllItems() { var action = new Func <IHttpActionResult>(() => { var result = _productDataServices.GetAllItems(); return(Ok(result)); }); return(ErrorHandlerWrapper(action)); }