public HealthModule(ICacheManager <Dependency> healthCache) { Put("/health/{appName}/{appId}", async(args) => { return(await HealthHandler.UpdateApplicationStatus(this.Bind <Ping>(), Services.HealthService.Update)); }); }
public async Task ShouldUpdateStatusForApplicationAndReturnHealth() { var response = await HealthHandler.UpdateApplicationStatus(_ping, _update); Assert.True(response.Healthy); }