コード例 #1
0
        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");
        }
コード例 #2
0
        public async Task BuildersRisk_RequestBinder_ShouldReturnOkStatus()
        {
            var testData = _buildersRiskHelpers.GetDefaultTestData(BuildersRiskApplicationStatus.Submitted);

            var appResult = await _httpHelpers.CreateApplication(testData);

            var applicationId = appResult.ApplicationId;

            await _httpHelpers.CreateQuote(applicationId);

            await _httpHelpers.SubmitApplication(applicationId);

            await _httpHelpers.CreateApprovedQuote(applicationId, true);

            var requestBinderStatus = await _httpHelpers.RequestBinder(applicationId);

            requestBinderStatus.Should().Be(HttpStatusCode.OK);
        }