コード例 #1
0
        public void GetData_ReturnsJsonResult()
        {
            lookup.GetData().Returns(new LookupData());

            Object actual   = controller.GetData(lookup, filter).Value;
            Object expected = lookup.GetData();

            Assert.Same(expected, actual);
        }
コード例 #2
0
        public virtual JsonResult GetData(ALookup lookup, LookupFilter filter)
        {
            lookup.Filter = filter;

            return(Json(lookup.GetData()));
        }