public void RuleServiceTest_Get_count() { var expected = rep.GetAll().Count(); var actual = service.GetAll().Count(); Assert.AreEqual(expected, actual); }
public void RuleControllerTest_GetAllRules() { var expected = service.GetAll(); var actual = controller.GetAllRules(); Assert.AreEqual(expected.Count(), actual.Count()); }
public IActionResult Get() { AppLogger.LogResourceRequest(nameof(Get), base.GetUsernameForRequest()); try { return(Ok(_ruleService.GetAll())); } catch (Exception ex) { return(BadRequestExceptionHandler(ex, nameof(Get))); } }
public IQueryable <RuleModel> GetAllRules() { return(service.GetAll()); }