public async Task Chubb_Bind_ShouldReturnOkStatus() { var testData = _chubbHelpers.GetDefaultTestData(ChubbApplicationStatus.Bound); var result = await _httpHelpers.CreateApplication(testData); var bindResult = await _httpHelpers.BindQuote(result.ApplicationId); bindResult.StatusCode.Should().Be(HttpStatusCode.OK); bindResult.PolicyNumber.Should().NotBeNullOrEmpty(); }
public async Task Artisans_Bind_ShouldCreateBoundQuote() { var testData = _nautilusHelpers.GetDefaultTestData(ArtisansApplicationStatus.Bound); var result = await _httpHelpers.CreateApplication(testData); await _httpHelpers.CreateQuote(result.ApplicationId); await _httpHelpers.RequestBinder(result.ApplicationId); await _httpHelpers.RequestPayment(result.ApplicationId, new PaymentStatusRequest { PaymentStatus = PaymentStatus.Credit }); var bindResult = await _httpHelpers.BindQuote(result.ApplicationId); bindResult.StatusCode.Should().Be(HttpStatusCode.OK); bindResult.PolicyNumber.Should().StartWith("QA"); }