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(AbstractLookup lookup, LookupFilter filter) { lookup.CurrentFilter = filter; return(Json(lookup.GetData())); }