From 44e0dad8f4cc77763d9eff6429619508c6db9bc9 Mon Sep 17 00:00:00 2001 From: Hunor Tot-Bagi Date: Wed, 8 Jan 2025 08:05:32 +0100 Subject: [PATCH] chore: move using to `GlobalUsing` & remove unused usings --- .../Commands/CreateTimeline/CreateTimelineCommand.cs | 4 +--- .../Commands/UpdateTimeline/UpdateTimelineCommand.cs | 4 +--- .../Commands/UpdateTimeline/UpdateTimelineHandler.cs | 3 +-- .../Entities/Timelines/Extensions/TimelineExtensions.cs | 4 +--- .../Timelines/Queries/GetTimelineById/GetTimelineByIdQuery.cs | 2 -- .../Timelines/Queries/ListTimelines/ListTimelinesHandler.cs | 1 - .../Timelines/Queries/ListTimelines/ListTimelinesQuery.cs | 1 - .../Modules/Timelines/Timelines.Application/GlobalUsing.cs | 1 + 8 files changed, 5 insertions(+), 15 deletions(-) diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/CreateTimeline/CreateTimelineCommand.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/CreateTimeline/CreateTimelineCommand.cs index 74444355..c72685a4 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/CreateTimeline/CreateTimelineCommand.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/CreateTimeline/CreateTimelineCommand.cs @@ -1,6 +1,4 @@ -using Timelines.Application.Entities.Timelines.Dtos; - -namespace Timelines.Application.Entities.Timelines.Commands.CreateTimeline; +namespace Timelines.Application.Entities.Timelines.Commands.CreateTimeline; // ReSharper disable once ClassNeverInstantiated.Global public record CreateTimelineCommand(TimelineDto Timeline) : ICommand; diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineCommand.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineCommand.cs index 81550fe9..92724e42 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineCommand.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineCommand.cs @@ -1,6 +1,4 @@ -using Timelines.Application.Entities.Timelines.Dtos; - -namespace Timelines.Application.Entities.Timelines.Commands.UpdateTimeline; +namespace Timelines.Application.Entities.Timelines.Commands.UpdateTimeline; public record UpdateTimelineCommand(TimelineDto Timeline) : ICommand; diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineHandler.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineHandler.cs index f602de81..22297fb9 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineHandler.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Commands/UpdateTimeline/UpdateTimelineHandler.cs @@ -1,5 +1,4 @@ -using Timelines.Application.Entities.Timelines.Dtos; -using Timelines.Application.Entities.Timelines.Exceptions; +using Timelines.Application.Entities.Timelines.Exceptions; namespace Timelines.Application.Entities.Timelines.Commands.UpdateTimeline; diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Extensions/TimelineExtensions.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Extensions/TimelineExtensions.cs index a136b18b..51c81388 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Extensions/TimelineExtensions.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Extensions/TimelineExtensions.cs @@ -1,6 +1,4 @@ -using Timelines.Application.Entities.Timelines.Dtos; - -namespace Timelines.Application.Entities.Timelines.Extensions; +namespace Timelines.Application.Entities.Timelines.Extensions; public static class TimelineExtensions { diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/GetTimelineById/GetTimelineByIdQuery.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/GetTimelineById/GetTimelineByIdQuery.cs index 9e07fb58..e17d170e 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/GetTimelineById/GetTimelineByIdQuery.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/GetTimelineById/GetTimelineByIdQuery.cs @@ -1,7 +1,5 @@ // ReSharper disable ClassNeverInstantiated.Global -using Timelines.Application.Entities.Timelines.Dtos; - namespace Timelines.Application.Entities.Timelines.Queries.GetTimelineById; public record GetTimelineByIdQuery(string Id) : IQuery; diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesHandler.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesHandler.cs index 71d258b6..d43f05d8 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesHandler.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesHandler.cs @@ -1,5 +1,4 @@ using BuildingBlocks.Application.Pagination; -using Timelines.Application.Entities.Timelines.Dtos; using Timelines.Application.Entities.Timelines.Extensions; namespace Timelines.Application.Entities.Timelines.Queries.ListTimelines; diff --git a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesQuery.cs b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesQuery.cs index 3e5d6d6d..c3120ead 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesQuery.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/Entities/Timelines/Queries/ListTimelines/ListTimelinesQuery.cs @@ -1,5 +1,4 @@ using BuildingBlocks.Application.Pagination; -using Timelines.Application.Entities.Timelines.Dtos; // ReSharper disable ClassNeverInstantiated.Global diff --git a/Backend/src/Modules/Timelines/Timelines.Application/GlobalUsing.cs b/Backend/src/Modules/Timelines/Timelines.Application/GlobalUsing.cs index 8e2b3c97..2fbf0fd5 100644 --- a/Backend/src/Modules/Timelines/Timelines.Application/GlobalUsing.cs +++ b/Backend/src/Modules/Timelines/Timelines.Application/GlobalUsing.cs @@ -5,3 +5,4 @@ global using BuildingBlocks.Domain.ValueObjects.Ids; global using Timelines.Application.Data; global using Timelines.Domain.Models; +global using Timelines.Application.Entities.Timelines.Dtos;