예제 #1
0
 public HealthController(IApplicationHealthService applicationHealthService, IServerHealthService serverHealthService, IDatabaseHealthService databaseHealthService, IDateTimeService dateTimeService, ILogger logger)
 {
     _applicationHealthService = applicationHealthService;
     _serverHealthService      = serverHealthService;
     _databaseHealthService    = databaseHealthService;
     _dateTimeService          = dateTimeService;
     _logger = logger;
 }
 public HealthControllerTests()
 {
     _applicationHealthService = Substitute.For <IApplicationHealthService>();
     _serverHealthService      = Substitute.For <IServerHealthService>();
     _databaseHealthService    = Substitute.For <IDatabaseHealthService>();
     _dateTimeService          = Substitute.For <IDateTimeService>();
     _subject = new HealthController(_applicationHealthService,
                                     _serverHealthService,
                                     _databaseHealthService,
                                     _dateTimeService,
                                     Substitute.For <ILogger>());
 }