public void Given_Blaise_Remote_Cati_Connection_Is_Up_When_I_Call_RemoteConnectionToCatiIsHealthy_Then_True_Is_Returned() { //arrange _remoteCatiManagementServerMock = new Mock <IRemoteCatiManagementServer>(); _catiManagementFactoryMock.Setup(c => c.GetConnection(_connectionModel)) .Returns(_remoteCatiManagementServerMock.Object); //act var result = _sut.RemoteConnectionToCatiIsHealthy(); //assert Assert.IsNotNull(result); Assert.IsTrue(result); }
private HealthCheckResultDto CheckRemoteCatiManagementConnection() { return(_blaiseHealthApi.RemoteConnectionToCatiIsHealthy() ? new HealthCheckResultDto(HealthCheckType.RemoteCatiManagement, HealthStatusType.Ok) : new HealthCheckResultDto(HealthCheckType.RemoteCatiManagement, HealthStatusType.Error)); }