From 90e98e0c3c104fbb09202bfd72ddbef150924266 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 15:00:26 +0000 Subject: [PATCH] style: format code with dotnet-format This commit fixes the style issues introduced in 6fa0965 according to the output from dotnet-format. Details: None --- src/Abstractions/ICreate.cs | 3 ++- src/Abstractions/ICreateHandler.cs | 3 ++- src/Abstractions/IDelete.cs | 6 ++++-- src/Abstractions/IDeleteHandler.cs | 6 ++++-- src/Abstractions/IDeletedNotification.cs | 6 ++++-- src/Abstractions/IPatch.cs | 3 ++- src/Abstractions/IPatchHandler.cs | 3 ++- src/Abstractions/IQuery.cs | 3 ++- src/Abstractions/IQueryHandler.cs | 6 ++++-- src/Abstractions/IUpdate.cs | 3 ++- src/Abstractions/IUpdateHandler.cs | 3 ++- src/MediatR/Commands/Delete.cs | 4 ++-- 12 files changed, 32 insertions(+), 17 deletions(-) diff --git a/src/Abstractions/ICreate.cs b/src/Abstractions/ICreate.cs index 58c6855..d78a64c 100644 --- a/src/Abstractions/ICreate.cs +++ b/src/Abstractions/ICreate.cs @@ -15,4 +15,5 @@ namespace Dgmjr.MediatR.Abstractions; public interface ICreateCommand : ICommand - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/ICreateHandler.cs b/src/Abstractions/ICreateHandler.cs index 0dd33e1..4c31955 100644 --- a/src/Abstractions/ICreateHandler.cs +++ b/src/Abstractions/ICreateHandler.cs @@ -18,4 +18,5 @@ namespace Dgmjr.MediatR.Handlers.Abstractions; public interface ICreateHandler : IRequestHandler where TId : IComparable, IEquatable - where TCreateCommand : ICreateCommand { } + where TCreateCommand : ICreateCommand +{ } diff --git a/src/Abstractions/IDelete.cs b/src/Abstractions/IDelete.cs index f764ff9..b9ff6a1 100644 --- a/src/Abstractions/IDelete.cs +++ b/src/Abstractions/IDelete.cs @@ -13,7 +13,9 @@ namespace Dgmjr.MediatR.Abstractions; public interface IDeleteCommand : IDeleteCommand - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } public interface IDeleteCommand : ICommand - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/IDeleteHandler.cs b/src/Abstractions/IDeleteHandler.cs index 272d8b7..2b5ee6b 100644 --- a/src/Abstractions/IDeleteHandler.cs +++ b/src/Abstractions/IDeleteHandler.cs @@ -16,8 +16,10 @@ namespace Dgmjr.MediatR.Handlers.Abstractions; public interface IDeleteHandler : IDeleteHandler where TId : IComparable, IEquatable - where TDeleteCommand : IDeleteCommand { } + where TDeleteCommand : IDeleteCommand +{ } public interface IDeleteHandler : IRequestHandler where TId : IComparable, IEquatable - where TDeleteCommand : IDeleteCommand { } + where TDeleteCommand : IDeleteCommand +{ } diff --git a/src/Abstractions/IDeletedNotification.cs b/src/Abstractions/IDeletedNotification.cs index aa29f0b..1154935 100644 --- a/src/Abstractions/IDeletedNotification.cs +++ b/src/Abstractions/IDeletedNotification.cs @@ -13,7 +13,9 @@ namespace Dgmjr.MediatR.Abstractions; public interface IDeletedNotification : INotification - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } public interface IDeletedNotification : INotification - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/IPatch.cs b/src/Abstractions/IPatch.cs index 6bc0165..6793f04 100644 --- a/src/Abstractions/IPatch.cs +++ b/src/Abstractions/IPatch.cs @@ -13,4 +13,5 @@ namespace Dgmjr.MediatR.Abstractions; public interface IPatchCommand : ICommand - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/IPatchHandler.cs b/src/Abstractions/IPatchHandler.cs index 4d60782..e9608ea 100644 --- a/src/Abstractions/IPatchHandler.cs +++ b/src/Abstractions/IPatchHandler.cs @@ -17,4 +17,5 @@ namespace Dgmjr.MediatR.Handlers.Abstractions; public interface IPatchHandler : IRequestHandler where TPatchCommand : IPatchCommand - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/IQuery.cs b/src/Abstractions/IQuery.cs index fbb4ac3..e8ac27c 100644 --- a/src/Abstractions/IQuery.cs +++ b/src/Abstractions/IQuery.cs @@ -16,7 +16,8 @@ namespace Dgmjr.MediatR.Abstractions; public interface IQuery : IQueryBase, IRequest - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } public interface IQuery : IQueryBase, IRequest> { diff --git a/src/Abstractions/IQueryHandler.cs b/src/Abstractions/IQueryHandler.cs index e3b41b8..d792972 100644 --- a/src/Abstractions/IQueryHandler.cs +++ b/src/Abstractions/IQueryHandler.cs @@ -19,7 +19,9 @@ public interface IQueryHandler : IRequestHandler where TId : IComparable, IEquatable where TDto : IIdentifiable - where TModel : IIdentifiable { } + where TModel : IIdentifiable +{ } public interface IQueryHandler : IRequestHandler> - where TQuery : IQuery { } + where TQuery : IQuery +{ } diff --git a/src/Abstractions/IUpdate.cs b/src/Abstractions/IUpdate.cs index 247d151..2069904 100644 --- a/src/Abstractions/IUpdate.cs +++ b/src/Abstractions/IUpdate.cs @@ -16,4 +16,5 @@ namespace Dgmjr.MediatR.Abstractions; public interface IUpdateCommand : ICommand where TModel : class, IIdentifiable - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/Abstractions/IUpdateHandler.cs b/src/Abstractions/IUpdateHandler.cs index 9c4c274..12f0eab 100644 --- a/src/Abstractions/IUpdateHandler.cs +++ b/src/Abstractions/IUpdateHandler.cs @@ -19,4 +19,5 @@ public interface IUpdateHandler : IRequestHandler where TUpdateCommand : IUpdateCommand where TModel : class, IIdentifiable - where TId : IComparable, IEquatable { } + where TId : IComparable, IEquatable +{ } diff --git a/src/MediatR/Commands/Delete.cs b/src/MediatR/Commands/Delete.cs index 23416bb..be9c8a2 100644 --- a/src/MediatR/Commands/Delete.cs +++ b/src/MediatR/Commands/Delete.cs @@ -21,8 +21,8 @@ public record struct DeleteCommand(TDto Dto, TId Id) : IDeleteCommand // Id = id; // } - public TDto Dto { get; } = Dto; - public TId Id { get; } = Id; + public TDto Dto { get; } = Dto; +public TId Id { get; } = Id; } public record struct DeleteCommand(TId Id) : IDeleteCommand