public async Task Basic_flow_should_work() { var incident = await _applicationClient.CreateIncident(); incident.Environments.Should().Be("IntegrationTests"); await incident.Assign(1); await incident.Close(1, "Fixed it", "1.1.0"); await incident.Report(); await incident.UpdateByLastReceivedReport(); incident.IsClosed.Should().BeTrue(); }
public async Task Clearing_environment_should_remove_all_incidents_in_it() { await _applicationClient.CreateIncident(x => { x.EnvironmentName = "Mock"; }); var id = await _apiClient.Reset(_applicationClient.ApplicationId, "Mock"); // required for some reason. TODO: Investigate ;) await Task.Delay(500); var actual = await _apiClient.QueryAsync(new FindIncidents() { ApplicationIds = new[] { _applicationClient.ApplicationId }, EnvironmentIds = new[] { id } } ); actual.Items.Should().BeEmpty(); }
public async Task Should_be_able_to_attach_feedback_to_existing_report() { var incident = await _applicationClient.CreateIncident(new { helloWorld = true }); await incident.LeaveFeedback("Hello world"); }