public void GetData_ReturnsJsonResult() { lookup.GetData().Returns(new LookupData()); Object actual = controller.GetData(lookup, filter).Value; Object expected = lookup.GetData(); Assert.Same(expected, actual); }
public virtual JsonResult GetData(ALookup lookup, LookupFilter filter) { lookup.Filter = filter; return(Json(lookup.GetData())); }