public void ctr_should_return_filtered_list_by_type() { var vmdl = ControllerHelper.GetValidFilterViewModel("pc"); var obj = ctr.PostFilter(vmdl) as OkObjectResult; var res = obj?.Value as DeviceListViewModel; Assert.NotNull(res); Assert.True(res.Devices.Count() == 3); }