public async Task Artisans_Submit_ShouldReturnOkStatus()
        {
            var testData = _nautilusHelpers.GetDefaultTestData(ArtisansApplicationStatus.Submitted);

            var result = await _httpHelpers.CreateApplication(testData);

            var submitStatus = await _httpHelpers.SubmitApplication(result.ApplicationId);

            submitStatus.Should().Be(HttpStatusCode.OK);
        }
Exemplo n.º 2
0
        public async Task BuildersRisk_Submit_ShouldReturnOkStatus()
        {
            var testData = _buildersRiskHelpers.GetDefaultTestData(BuildersRiskApplicationStatus.Submitted);

            var result = await _httpHelpers.CreateApplication(testData);

            await _httpHelpers.CreateQuote(result.ApplicationId);

            var submitStatus = await _httpHelpers.SubmitApplication(result.ApplicationId);

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