public void SeverityResponse_NoOutput_BadRequestRequest()
        {
            Mock <ISeverityRepo> mock = new Mock <ISeverityRepo>();

            mock.Setup(p => p.Response()).Returns(l2);

            SeverityRepo cp = new SeverityRepo();

            List <AuditBenchmark> result = cp.Response();

            Assert.IsNull(result);
        }
        public void SeverityResponse_ValidOutput_OkRequest()
        {
            Mock <ISeverityRepo> mock = new Mock <ISeverityRepo>();

            mock.Setup(p => p.Response()).Returns(l1);

            SeverityRepo cp = new SeverityRepo();

            List <AuditBenchmark> result = cp.Response();

            Assert.AreEqual(l2, result);
        }
 public SeverityProvider(IConfiguration _config)
 {
     config       = _config;
     severityRepo = new SeverityRepo(config);
 }
Ejemplo n.º 4
0
 public SeverityService(IConfiguration configuration)
 {
     _configuration = configuration;
     _severityRepo  = new SeverityRepo(_configuration);
 }