示例#1
0
        public async Task BuildersRisk_Approve_ShouldReturnOkStatus()
        {
            var testData = _buildersRiskHelpers.GetDefaultTestData(BuildersRiskApplicationStatus.Submitted);

            var result = await _httpHelpers.CreateApplication(testData);

            await _httpHelpers.CreateQuote(result.ApplicationId);

            await _httpHelpers.SubmitApplication(result.ApplicationId);

            var approveResult = await _httpHelpers.CreateApprovedQuote(result.ApplicationId, true);

            approveResult.Should().Be(HttpStatusCode.OK);
        }
        public async Task Artisans_Approve_ShouldReturnOkStatus()
        {
            var testData = _nautilusHelpers.GetDefaultTestData(ArtisansApplicationStatus.Approved);

            var result = await _httpHelpers.CreateApplication(testData);

            await _httpHelpers.SubmitApplication(result.ApplicationId);

            await _httpHelpers.CreateQuote(result.ApplicationId, true);

            var approveStatus = await _httpHelpers.CreateApprovedQuote(result.ApplicationId);

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