diff --git a/.github/workflows/basic-dotnet-pipeline.yml b/.github/workflows/basic-dotnet-pipeline.yml index 6b77375..77543a0 100644 --- a/.github/workflows/basic-dotnet-pipeline.yml +++ b/.github/workflows/basic-dotnet-pipeline.yml @@ -24,6 +24,9 @@ jobs: - name: Build run: dotnet build --no-restore "source/FlightScanner.sln" + + - name: Run dotnet format + run: dotnet format "source/FlightScanner.sln" --no-restore --verify-no-changes --exclude source/FlightScanner.Client.BlazorWA/Program.cs - name: Test run: dotnet test --no-build --verbosity normal "source/FlightScanner.sln" \ No newline at end of file diff --git a/README.md b/README.md index 6e17d99..d25a8a8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Flight Scanner can be used to search for flights and look for available flights. - Write unit and integration tests for some of features - Add images for solution architecture, both for project dependencies and logical architecture - Add test coverage images - - Add automation for build and test stages + - Add automation for build, format and test stages - Automate generation of SQlite database with IATA codes ## Usage diff --git a/source/FlightScanner.AirportCodes.Cli/Database/SqlLiteDatabaseManager.cs b/source/FlightScanner.AirportCodes.Cli/Database/SqlLiteDatabaseManager.cs index e20a889..016911a 100644 --- a/source/FlightScanner.AirportCodes.Cli/Database/SqlLiteDatabaseManager.cs +++ b/source/FlightScanner.AirportCodes.Cli/Database/SqlLiteDatabaseManager.cs @@ -1,5 +1,5 @@ -using FlightScanner.AirportCodes.Cli.Models; -using System.Data.SQLite; +using System.Data.SQLite; +using FlightScanner.AirportCodes.Cli.Models; namespace FlightScanner.AirportCodes.Cli.Database; diff --git a/source/FlightScanner.Client.BlazorWA/Components/AvailableFlightsGridComponentBase.cs b/source/FlightScanner.Client.BlazorWA/Components/AvailableFlightsGridComponentBase.cs index b9f5fd2..e7e2321 100644 --- a/source/FlightScanner.Client.BlazorWA/Components/AvailableFlightsGridComponentBase.cs +++ b/source/FlightScanner.Client.BlazorWA/Components/AvailableFlightsGridComponentBase.cs @@ -1,7 +1,7 @@ -using FlightScanner.Client.BlazorWA.Models; +using System.ComponentModel; +using FlightScanner.Client.BlazorWA.Models; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.QuickGrid; -using System.ComponentModel; namespace FlightScanner.Client.BlazorWA.Components; diff --git a/source/FlightScanner.Client.BlazorWA/Models/FlightSearchViewModel.cs b/source/FlightScanner.Client.BlazorWA/Models/FlightSearchViewModel.cs index f120d4f..a6a9f0f 100644 --- a/source/FlightScanner.Client.BlazorWA/Models/FlightSearchViewModel.cs +++ b/source/FlightScanner.Client.BlazorWA/Models/FlightSearchViewModel.cs @@ -1,5 +1,5 @@ -using FlightScanner.Common.Enumerations; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; +using FlightScanner.Common.Enumerations; namespace FlightScanner.Client.BlazorWA.Models; diff --git a/source/FlightScanner.Client.BlazorWA/Program.cs b/source/FlightScanner.Client.BlazorWA/Program.cs index 99cc8e1..970862e 100644 --- a/source/FlightScanner.Client.BlazorWA/Program.cs +++ b/source/FlightScanner.Client.BlazorWA/Program.cs @@ -1,9 +1,9 @@ -using Microsoft.AspNetCore.Components.Web; -using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using FlightScanner.Client.BlazorWA; +using FlightScanner.Client.BlazorWA; +using FlightScanner.Client.BlazorWA.Models; using FlightScanner.Client.BlazorWA.Services.Contracts; using FlightScanner.Client.BlazorWA.Services.Implementations; -using FlightScanner.Client.BlazorWA.Models; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.WebAssembly.Hosting; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); diff --git a/source/FlightScanner.Client.BlazorWA/Services/Implementations/AirportsManagerService.cs b/source/FlightScanner.Client.BlazorWA/Services/Implementations/AirportsManagerService.cs index bfec6a8..016b61d 100644 --- a/source/FlightScanner.Client.BlazorWA/Services/Implementations/AirportsManagerService.cs +++ b/source/FlightScanner.Client.BlazorWA/Services/Implementations/AirportsManagerService.cs @@ -1,7 +1,7 @@ -using FlightScanner.Client.BlazorWA.Services.Contracts; -using System.Net.Http.Json; -using FlightScanner.DTOs.Responses; +using System.Net.Http.Json; +using FlightScanner.Client.BlazorWA.Services.Contracts; using FlightScanner.DTOs.Models; +using FlightScanner.DTOs.Responses; namespace FlightScanner.Client.BlazorWA.Services.Implementations; diff --git a/source/FlightScanner.Client.BlazorWA/Services/Implementations/FlightSearchService.cs b/source/FlightScanner.Client.BlazorWA/Services/Implementations/FlightSearchService.cs index 7720140..3c9c04d 100644 --- a/source/FlightScanner.Client.BlazorWA/Services/Implementations/FlightSearchService.cs +++ b/source/FlightScanner.Client.BlazorWA/Services/Implementations/FlightSearchService.cs @@ -1,10 +1,10 @@ -using FlightScanner.Client.BlazorWA.Models; +using System.Net.Http.Json; +using System.Web; +using FlightScanner.Client.BlazorWA.Models; using FlightScanner.Client.BlazorWA.Services.Contracts; using FlightScanner.Common.Constants; using FlightScanner.DTOs.Models; using FlightScanner.DTOs.Responses; -using System.Net.Http.Json; -using System.Web; namespace FlightScanner.Client.BlazorWA.Services.Implementations; diff --git a/source/FlightScanner.DTOs/Responses/AmadeusFlightsResponseDto.cs b/source/FlightScanner.DTOs/Responses/AmadeusFlightsResponseDto.cs index b7f4441..48c8142 100644 --- a/source/FlightScanner.DTOs/Responses/AmadeusFlightsResponseDto.cs +++ b/source/FlightScanner.DTOs/Responses/AmadeusFlightsResponseDto.cs @@ -1,5 +1,5 @@ -using FlightScanner.DTOs.Models.Amadeus; -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; +using FlightScanner.DTOs.Models.Amadeus; namespace FlightScanner.DTOs.Responses; diff --git a/source/FlightScanner.DTOs/Responses/AviationFlightsResponseDto.cs b/source/FlightScanner.DTOs/Responses/AviationFlightsResponseDto.cs index f6d2a73..a51c139 100644 --- a/source/FlightScanner.DTOs/Responses/AviationFlightsResponseDto.cs +++ b/source/FlightScanner.DTOs/Responses/AviationFlightsResponseDto.cs @@ -1,5 +1,5 @@ -using FlightScanner.DTOs.Models.Aviation; -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; +using FlightScanner.DTOs.Models.Aviation; namespace FlightScanner.DTOs.Responses; diff --git a/source/FlightScanner.Persistence/Configurations/AirportEntityConfiguration.cs b/source/FlightScanner.Persistence/Configurations/AirportEntityConfiguration.cs index 7fe91e5..4e278a6 100644 --- a/source/FlightScanner.Persistence/Configurations/AirportEntityConfiguration.cs +++ b/source/FlightScanner.Persistence/Configurations/AirportEntityConfiguration.cs @@ -1,6 +1,6 @@ -using Microsoft.EntityFrameworkCore.Metadata.Builders; +using FlightScanner.Domain.Entities; using Microsoft.EntityFrameworkCore; -using FlightScanner.Domain.Entities; +using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace FlightScanner.Persistence.Configurations; diff --git a/source/FlightScanner.Persistence/DesignTime/DesignTimeDbContextFactory.cs b/source/FlightScanner.Persistence/DesignTime/DesignTimeDbContextFactory.cs index 8b81d84..c5e2600 100644 --- a/source/FlightScanner.Persistence/DesignTime/DesignTimeDbContextFactory.cs +++ b/source/FlightScanner.Persistence/DesignTime/DesignTimeDbContextFactory.cs @@ -1,6 +1,6 @@ using FlightScanner.Persistence.Database; -using Microsoft.EntityFrameworkCore.Design; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Design; namespace FlightScanner.Persistence.DesignTime; diff --git a/source/FlightScanner.Persistence/Migrations/20241205155735_InitialMigration.cs b/source/FlightScanner.Persistence/Migrations/20241205155735_InitialMigration.cs index 050973a..9f85a01 100644 --- a/source/FlightScanner.Persistence/Migrations/20241205155735_InitialMigration.cs +++ b/source/FlightScanner.Persistence/Migrations/20241205155735_InitialMigration.cs @@ -2,33 +2,32 @@ #nullable disable -namespace FlightScanner.Persistence.Migrations +namespace FlightScanner.Persistence.Migrations; + +/// +public partial class InitialMigration : Migration { /// - public partial class InitialMigration : Migration + protected override void Up(MigrationBuilder migrationBuilder) { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Airports", - columns: table => new - { - IATA_Code = table.Column(type: "TEXT", nullable: false), - Airport_Name = table.Column(type: "TEXT", nullable: true), - Location = table.Column(type: "TEXT", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Airports", x => x.IATA_Code); - }); - } + migrationBuilder.CreateTable( + name: "Airports", + columns: table => new + { + IATA_Code = table.Column(type: "TEXT", nullable: false), + Airport_Name = table.Column(type: "TEXT", nullable: true), + Location = table.Column(type: "TEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Airports", x => x.IATA_Code); + }); + } - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Airports"); - } + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Airports"); } } diff --git a/source/FlightScanner.Persistence/PersistenceServiceExtensions.cs b/source/FlightScanner.Persistence/PersistenceServiceExtensions.cs index 85e3746..9d7dcb5 100644 --- a/source/FlightScanner.Persistence/PersistenceServiceExtensions.cs +++ b/source/FlightScanner.Persistence/PersistenceServiceExtensions.cs @@ -1,9 +1,9 @@ -using FlightScanner.Domain.Repositories; +using System.Reflection; +using FlightScanner.Domain.Repositories; using FlightScanner.Persistence.Database; using FlightScanner.Persistence.Repositories; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -using System.Reflection; namespace FlightScanner.Persistence; diff --git a/source/FlightScanner.WebApi/Controllers/AirportCodesController.cs b/source/FlightScanner.WebApi/Controllers/AirportCodesController.cs index 707239e..c2aae4c 100644 --- a/source/FlightScanner.WebApi/Controllers/AirportCodesController.cs +++ b/source/FlightScanner.WebApi/Controllers/AirportCodesController.cs @@ -1,4 +1,5 @@ -using FlightScanner.Domain.Entities; +using System.Net.Mime; +using FlightScanner.Domain.Entities; using FlightScanner.DTOs.Exceptions; using FlightScanner.DTOs.Responses; using FlightScanner.WebApi.Filters; @@ -7,7 +8,6 @@ using FlightsScanner.Application.Airports.Queries.GetAllAirports; using MediatR; using Microsoft.AspNetCore.Mvc; -using System.Net.Mime; namespace FlightScanner.WebApi.Controllers; diff --git a/source/FlightScanner.WebApi/Controllers/AvailableFlightsController.cs b/source/FlightScanner.WebApi/Controllers/AvailableFlightsController.cs index a5aed38..8020b15 100644 --- a/source/FlightScanner.WebApi/Controllers/AvailableFlightsController.cs +++ b/source/FlightScanner.WebApi/Controllers/AvailableFlightsController.cs @@ -1,11 +1,11 @@ -using FlightScanner.Common.Constants; +using System.Net.Mime; +using FlightScanner.Common.Constants; using FlightScanner.DTOs.Exceptions; using FlightScanner.DTOs.Responses; using FlightScanner.WebApi.Validation; using FlightsScanner.Application.Flights.Queries.GetFlights; using MediatR; using Microsoft.AspNetCore.Mvc; -using System.Net.Mime; namespace FlightScanner.WebApi.Controllers; diff --git a/source/FlightScanner.WebApi/Filters/AirportCodesVersionDiscontinuationResourceFilter.cs b/source/FlightScanner.WebApi/Filters/AirportCodesVersionDiscontinuationResourceFilter.cs index 2a2c178..a5008fb 100644 --- a/source/FlightScanner.WebApi/Filters/AirportCodesVersionDiscontinuationResourceFilter.cs +++ b/source/FlightScanner.WebApi/Filters/AirportCodesVersionDiscontinuationResourceFilter.cs @@ -1,5 +1,5 @@ -using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Filters; namespace FlightScanner.WebApi.Filters; diff --git a/source/FlightScanner.WebApi/Filters/CountriesWithClosedAirTrafficFilter.cs b/source/FlightScanner.WebApi/Filters/CountriesWithClosedAirTrafficFilter.cs index 739bad0..ee0ba8f 100644 --- a/source/FlightScanner.WebApi/Filters/CountriesWithClosedAirTrafficFilter.cs +++ b/source/FlightScanner.WebApi/Filters/CountriesWithClosedAirTrafficFilter.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.Mvc.Filters; +using FlightScanner.Domain.Entities; using Microsoft.AspNetCore.Mvc; -using FlightScanner.Domain.Entities; +using Microsoft.AspNetCore.Mvc.Filters; namespace FlightScanner.WebApi.Filters; diff --git a/source/FlightScanner.WebApi/Middleware/GlobalExceptionHandlerMiddleware.cs b/source/FlightScanner.WebApi/Middleware/GlobalExceptionHandlerMiddleware.cs index 9b8270a..d98e954 100644 --- a/source/FlightScanner.WebApi/Middleware/GlobalExceptionHandlerMiddleware.cs +++ b/source/FlightScanner.WebApi/Middleware/GlobalExceptionHandlerMiddleware.cs @@ -1,5 +1,5 @@ -using System.Net.Mime; -using System.Net; +using System.Net; +using System.Net.Mime; using FlightScanner.DTOs.Exceptions; namespace FlightScanner.WebApi.Middleware; diff --git a/source/FlightScanner.WebApi/Program.cs b/source/FlightScanner.WebApi/Program.cs index c45ef45..3ae9284 100644 --- a/source/FlightScanner.WebApi/Program.cs +++ b/source/FlightScanner.WebApi/Program.cs @@ -1,12 +1,12 @@ -using FlightsScanner.Application.Constants; -using FlightsScanner.Application.Services.Contracts; +using FlightScanner.DTOs.Models; using FlightScanner.Persistence; +using FlightScanner.WebApi.Middleware; using FlightsScanner.Application.Airports.Queries.GetAirport; -using FlightsScanner.Application.Services.Implementations; -using FlightsScanner.Application.Flights.Queries.GetFlights; using FlightsScanner.Application.Authentication; -using FlightScanner.WebApi.Middleware; -using FlightScanner.DTOs.Models; +using FlightsScanner.Application.Constants; +using FlightsScanner.Application.Flights.Queries.GetFlights; +using FlightsScanner.Application.Services.Contracts; +using FlightsScanner.Application.Services.Implementations; public class Program { diff --git a/source/FlightScanner.WebApi/Validation/ArrivalDateTimeValidation.cs b/source/FlightScanner.WebApi/Validation/ArrivalDateTimeValidation.cs index 5f02e2f..f396298 100644 --- a/source/FlightScanner.WebApi/Validation/ArrivalDateTimeValidation.cs +++ b/source/FlightScanner.WebApi/Validation/ArrivalDateTimeValidation.cs @@ -1,6 +1,6 @@ -using FlightScanner.Common.Constants; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.Globalization; +using FlightScanner.Common.Constants; namespace FlightScanner.WebApi.Validation; diff --git a/source/FlightScanner.WebApi/Validation/CurrencyValidation.cs b/source/FlightScanner.WebApi/Validation/CurrencyValidation.cs index a6d6cdd..0e77142 100644 --- a/source/FlightScanner.WebApi/Validation/CurrencyValidation.cs +++ b/source/FlightScanner.WebApi/Validation/CurrencyValidation.cs @@ -1,5 +1,5 @@ -using FlightScanner.Common.Enumerations; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; +using FlightScanner.Common.Enumerations; namespace FlightScanner.WebApi.Validation; diff --git a/source/FlightScanner.WebApi/Validation/DepartureDateTimeValidation.cs b/source/FlightScanner.WebApi/Validation/DepartureDateTimeValidation.cs index 4726f44..0fec9da 100644 --- a/source/FlightScanner.WebApi/Validation/DepartureDateTimeValidation.cs +++ b/source/FlightScanner.WebApi/Validation/DepartureDateTimeValidation.cs @@ -1,6 +1,6 @@ -using FlightScanner.Common.Constants; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.Globalization; +using FlightScanner.Common.Constants; namespace FlightScanner.WebApi.Validation; diff --git a/source/FlightsScanner.Application/Constants/CacheConstants.cs b/source/FlightsScanner.Application/Constants/CacheConstants.cs index 8ab8c23..2a0e92a 100644 --- a/source/FlightsScanner.Application/Constants/CacheConstants.cs +++ b/source/FlightsScanner.Application/Constants/CacheConstants.cs @@ -26,7 +26,6 @@ public static class CacheConstants #region Flights - public const int SLIDING_EXPIRATION_FOR_AMADEUS_AUTHORIZATION = 300; public const int ABSOLUTE_EXPIRATION_FOR_AMADEUS_AUTHORIZATION = 1; diff --git a/source/FlightsScanner.Application/Services/Implementations/AmadeusAuthorizatoinHandlerService.cs b/source/FlightsScanner.Application/Services/Implementations/AmadeusAuthorizatoinHandlerService.cs index bf9074f..7b38893 100644 --- a/source/FlightsScanner.Application/Services/Implementations/AmadeusAuthorizatoinHandlerService.cs +++ b/source/FlightsScanner.Application/Services/Implementations/AmadeusAuthorizatoinHandlerService.cs @@ -1,11 +1,11 @@ -using FlightScanner.DTOs.Responses; +using System.Net.Http.Json; +using System.Net.Mime; +using System.Text; +using FlightScanner.DTOs.Responses; using FlightsScanner.Application.Constants; using FlightsScanner.Application.Services.Contracts; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Configuration; -using System.Net.Http.Json; -using System.Net.Mime; -using System.Text; namespace FlightsScanner.Application.Services.Implementations; diff --git a/source/FlightsScanner.Application/Services/Implementations/AmadeusFlightSearchService.cs b/source/FlightsScanner.Application/Services/Implementations/AmadeusFlightSearchService.cs index e4739e0..970d7e8 100644 --- a/source/FlightsScanner.Application/Services/Implementations/AmadeusFlightSearchService.cs +++ b/source/FlightsScanner.Application/Services/Implementations/AmadeusFlightSearchService.cs @@ -1,10 +1,10 @@ -using FlightScanner.Domain.Exceptions; +using System.Net.Http.Json; +using System.Web; +using FlightScanner.Domain.Exceptions; using FlightScanner.DTOs.Models; using FlightScanner.DTOs.Responses; using FlightsScanner.Application.Constants; using FlightsScanner.Application.Services.Contracts; -using System.Net.Http.Json; -using System.Web; namespace FlightsScanner.Application.Services.Implementations; diff --git a/source/FlightsScanner.Application/Services/Implementations/AviationStackFlightSearchService.cs b/source/FlightsScanner.Application/Services/Implementations/AviationStackFlightSearchService.cs index d90a5ab..3fcbadc 100644 --- a/source/FlightsScanner.Application/Services/Implementations/AviationStackFlightSearchService.cs +++ b/source/FlightsScanner.Application/Services/Implementations/AviationStackFlightSearchService.cs @@ -1,10 +1,10 @@ -using FlightScanner.Domain.Exceptions; +using System.Net.Http.Json; +using FlightScanner.Domain.Exceptions; using FlightScanner.DTOs.Models; using FlightScanner.DTOs.Responses; using FlightsScanner.Application.Constants; using FlightsScanner.Application.Services.Contracts; using Microsoft.Extensions.Configuration; -using System.Net.Http.Json; namespace FlightsScanner.Application.Services.Implementations; diff --git a/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AirportCodesControllerTests.cs b/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AirportCodesControllerTests.cs index 8653cff..ea10935 100644 --- a/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AirportCodesControllerTests.cs +++ b/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AirportCodesControllerTests.cs @@ -1,11 +1,11 @@ -using FlightScanner.Domain.Entities; +using System.Net; +using System.Net.Http.Json; +using FlightScanner.Domain.Entities; using FlightScanner.Domain.Repositories; using FlightScanner.DTOs.Responses; using FlightScanner.WebApi.IntegratoinTests.TestInfrastructure; using Microsoft.Extensions.DependencyInjection; using NSubstitute; -using System.Net; -using System.Net.Http.Json; namespace FlightScanner.WebApi.IntegratoinTests.Controllers; @@ -81,27 +81,27 @@ public async Task GetAirportOverHttp_WhenRequestContainsForbiddenIataCode_Should var expectedErrorTitle = "Forbidden IATA code"; var expectedErrorMessage = $"Airport with IATA code {closedAirport} is currently closed due to war conditions!"; - var foundMovieResponse = await httpClient.GetAsync($"api/v2/airport?iataCode={closedAirport}"); - var contentString = await foundMovieResponse.Content.ReadAsStringAsync(); + var httpResponse = await httpClient.GetAsync($"api/v2/airport?iataCode={closedAirport}"); + var contentString = await httpResponse.Content.ReadAsStringAsync(); Assert.Multiple(() => { - Assert.That(foundMovieResponse.StatusCode, Is.EqualTo(HttpStatusCode.BadRequest)); + Assert.That(httpResponse.StatusCode, Is.EqualTo(HttpStatusCode.BadRequest)); StringAssert.Contains(expectedErrorTitle, contentString); StringAssert.Contains(expectedErrorMessage, contentString); }); } [Test] - public async Task GetAirportOverHttp_WhenRequestIsValid_ShouldReceiveExpectedMovie() + public async Task GetAirportOverHttp_WhenRequestIsValid_ShouldReceiveExpectedResponse() { var searchedAirport = "BOS"; var applicationFactory = new FlightScannerWebApplicationFactory(); var httpClient = applicationFactory.CreateClient(); - var foundMovieResponse = await httpClient.GetAsync($"api/v2/airport?iataCode={searchedAirport}"); + var httpResponse = await httpClient.GetAsync($"api/v2/airport?iataCode={searchedAirport}"); - Assert.That(foundMovieResponse.StatusCode, Is.EqualTo(HttpStatusCode.OK)); + Assert.That(httpResponse.StatusCode, Is.EqualTo(HttpStatusCode.OK)); } [Test] diff --git a/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AvailableFlightsControllerTests.cs b/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AvailableFlightsControllerTests.cs index 385c388..2f24027 100644 --- a/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AvailableFlightsControllerTests.cs +++ b/tests/FlightScanner.WebApi.IntegrationTests/Controllers/AvailableFlightsControllerTests.cs @@ -1,12 +1,12 @@ -using FlightScanner.DTOs.Responses; -using FlightScanner.WebApi.IntegratoinTests.TestInfrastructure; -using NSubstitute; +using System.Net; using System.Net.Http.Json; -using System.Net; using FlightScanner.Common.Constants; -using Microsoft.Extensions.DependencyInjection; -using FlightsScanner.Application.Services.Contracts; using FlightScanner.DTOs.Models; +using FlightScanner.DTOs.Responses; +using FlightScanner.WebApi.IntegratoinTests.TestInfrastructure; +using FlightsScanner.Application.Services.Contracts; +using Microsoft.Extensions.DependencyInjection; +using NSubstitute; namespace FlightScanner.WebApi.IntegratoinTests.Controllers; diff --git a/tests/FlightScanner.WebApi.UnitTests/Validation/ArrivalDateTimeValidationTests.cs b/tests/FlightScanner.WebApi.UnitTests/Validation/ArrivalDateTimeValidationTests.cs index 8880c40..0f0c72b 100644 --- a/tests/FlightScanner.WebApi.UnitTests/Validation/ArrivalDateTimeValidationTests.cs +++ b/tests/FlightScanner.WebApi.UnitTests/Validation/ArrivalDateTimeValidationTests.cs @@ -1,6 +1,6 @@ -using FlightScanner.Common.Constants; +using System.ComponentModel.DataAnnotations; +using FlightScanner.Common.Constants; using FlightScanner.WebApi.Validation; -using System.ComponentModel.DataAnnotations; namespace FlightScanner.WebApi.UnitTests.Validation; diff --git a/tests/FlightScanner.WebApi.UnitTests/Validation/CurrencyValidationTests.cs b/tests/FlightScanner.WebApi.UnitTests/Validation/CurrencyValidationTests.cs index 0adb87a..48b9424 100644 --- a/tests/FlightScanner.WebApi.UnitTests/Validation/CurrencyValidationTests.cs +++ b/tests/FlightScanner.WebApi.UnitTests/Validation/CurrencyValidationTests.cs @@ -1,5 +1,5 @@ -using FlightScanner.WebApi.Validation; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; +using FlightScanner.WebApi.Validation; namespace FlightScanner.WebApi.UnitTests.Validation; diff --git a/tests/FlightScanner.WebApi.UnitTests/Validation/DepartureDateTimeValidationTests.cs b/tests/FlightScanner.WebApi.UnitTests/Validation/DepartureDateTimeValidationTests.cs index 7fc9528..426c59d 100644 --- a/tests/FlightScanner.WebApi.UnitTests/Validation/DepartureDateTimeValidationTests.cs +++ b/tests/FlightScanner.WebApi.UnitTests/Validation/DepartureDateTimeValidationTests.cs @@ -1,6 +1,6 @@ -using FlightScanner.Common.Constants; +using System.ComponentModel.DataAnnotations; +using FlightScanner.Common.Constants; using FlightScanner.WebApi.Validation; -using System.ComponentModel.DataAnnotations; namespace FlightScanner.WebApi.UnitTests.Validation;