Beispiel #1
0
        public async Task BuildersRisk_Revise_ShouldReturnOkStatus()
        {
            var testData = _buildersRiskHelpers.GetDefaultTestData(BuildersRiskApplicationStatus.Submitted);

            var result = await _httpHelpers.CreateApplication(testData);

            await _httpHelpers.CreateQuote(result.ApplicationId);

            await _httpHelpers.SubmitApplication(result.ApplicationId);

            var update = new QuoteUpdate {
                Subtotal = 999999
            };

            await _httpHelpers.ReviewQuote(result.ApplicationId, update);

            var reviseStatus = await _httpHelpers.ReviseQuote(result.ApplicationId, "QA Revise Quote Test");

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