From 51f5c9f6fffadcb3612e015f7c1ad896d6bd1c84 Mon Sep 17 00:00:00 2001 From: Vladyslav Chyzhevskyi Date: Sat, 31 Jul 2021 02:24:48 +0200 Subject: [PATCH] removed developer's name from the package name --- .github/workflows/build-develop.yml | 10 +++++----- .vscode/launch.json | 2 +- README.md | 2 +- ....CQRS.Example.csproj => ASPNET.CQRS.Example.csproj} | 2 +- example/Commands/PingCommand.cs | 4 ++-- example/Commands/PingComplexCommand.cs | 4 ++-- example/Program.cs | 2 +- example/Properties/launchSettings.json | 2 +- example/Queries/PingComplexQuery.cs | 6 +++--- example/Queries/PingQuery.cs | 6 +++--- example/Startup.cs | 2 +- ...yzhevskyi.ASPNET.CQRS.csproj => ASPNET.CQRS.csproj} | 2 +- src/CQRSFeature.cs | 2 +- src/CQRSFeatureProvider.cs | 8 ++++---- src/CQRSHandlerDescriptor.cs | 2 +- src/CQRSMiddleware.cs | 2 +- src/CQRSMiddlewareExtensions.cs | 2 +- src/CQRSOptions.cs | 2 +- src/CQRSRouteAttribute.cs | 2 +- src/Commands/CQRSMiddleware.HandleCommand.cs | 6 +++--- src/Commands/ICommand.cs | 2 +- src/Commands/ICommandHandler.cs | 2 +- src/Helpers/ReflectionHelpers.cs | 4 ++-- src/HttpContextExtensions.cs | 2 +- src/ICQRSFeatureProvider.cs | 2 +- src/IServiceCollectionExtensions.cs | 2 +- src/Queries/CQRSMiddleware.HandleQuery.cs | 6 +++--- src/Queries/IQuery.cs | 2 +- src/Queries/IQueryHandler.cs | 2 +- ...PNET.CQRS.Tests.csproj => ASPNET.CQRS.Tests.csproj} | 2 +- tests/CommandSelectorTests.cs | 6 +++--- tests/QuerySelectorTests.cs | 6 +++--- tests/TestCases/ComplexQuery.cs | 4 ++-- tests/TestCases/SimpleCommand.cs | 4 ++-- tests/TestCases/SimpleQuery.cs | 4 ++-- 35 files changed, 60 insertions(+), 60 deletions(-) rename example/{VladyslavChyzhevskyi.ASPNET.CQRS.Example.csproj => ASPNET.CQRS.Example.csproj} (63%) rename src/{VladyslavChyzhevskyi.ASPNET.CQRS.csproj => ASPNET.CQRS.csproj} (91%) rename tests/{VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj => ASPNET.CQRS.Tests.csproj} (79%) diff --git a/.github/workflows/build-develop.yml b/.github/workflows/build-develop.yml index 598996e..40902e3 100644 --- a/.github/workflows/build-develop.yml +++ b/.github/workflows/build-develop.yml @@ -18,10 +18,10 @@ jobs: with: dotnet-version: 5.0.102 - name: Install dependencies - run: dotnet restore src/VladyslavChyzhevskyi.ASPNET.CQRS.csproj - && dotnet restore tests/VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj - && dotnet restore example/VladyslavChyzhevskyi.ASPNET.CQRS.Example.csproj + run: dotnet restore src/ASPNET.CQRS.csproj + && dotnet restore tests/ASPNET.CQRS.Tests.csproj + && dotnet restore example/ASPNET.CQRS.Example.csproj - name: Build - run: dotnet build src/VladyslavChyzhevskyi.ASPNET.CQRS.csproj --configuration Debug --no-restore + run: dotnet build src/ASPNET.CQRS.csproj --configuration Debug --no-restore - name: Test - run: dotnet test tests/VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj --no-restore --verbosity normal + run: dotnet test tests/ASPNET.CQRS.Tests.csproj --no-restore --verbosity normal diff --git a/.vscode/launch.json b/.vscode/launch.json index 8107634..98f29bf 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/example/bin/Debug/netcoreapp3.1/VladyslavChyzhevskyi.ASPNET.CQRS.Example.dll", + "program": "${workspaceFolder}/example/bin/Debug/netcoreapp3.1/ASPNET.CQRS.Example.dll", "args": [], "cwd": "${workspaceFolder}/example", "stopAtEntry": false, diff --git a/README.md b/README.md index 0a7a81f..7dde46e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# VladyslavChyzhevskyi.ASPNET.CQRS +# ASPNET.CQRS ![Build RC](https://github.com/vchyzhevskyi/aspnet.cqrs/workflows/Build%20RC/badge.svg) [![NuGet Badge](https://buildstats.info/nuget/VladyslavChyzhevskyi.ASPNET.CQRS?includePreReleases=true)](https://www.nuget.org/packages/VladyslavChyzhevskyi.ASPNET.CQRS/) diff --git a/example/VladyslavChyzhevskyi.ASPNET.CQRS.Example.csproj b/example/ASPNET.CQRS.Example.csproj similarity index 63% rename from example/VladyslavChyzhevskyi.ASPNET.CQRS.Example.csproj rename to example/ASPNET.CQRS.Example.csproj index 4232ebe..53f55bb 100644 --- a/example/VladyslavChyzhevskyi.ASPNET.CQRS.Example.csproj +++ b/example/ASPNET.CQRS.Example.csproj @@ -1,7 +1,7 @@ - + diff --git a/example/Commands/PingCommand.cs b/example/Commands/PingCommand.cs index 635fdfa..713da9d 100644 --- a/example/Commands/PingCommand.cs +++ b/example/Commands/PingCommand.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Commands; +using ASPNET.CQRS.Commands; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example.Commands +namespace ASPNET.CQRS.Example.Commands { [CQRSRoute("/ping")] public class PingCommandHandler : ICommandHandler diff --git a/example/Commands/PingComplexCommand.cs b/example/Commands/PingComplexCommand.cs index e717190..4dcb03c 100644 --- a/example/Commands/PingComplexCommand.cs +++ b/example/Commands/PingComplexCommand.cs @@ -1,8 +1,8 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Commands; +using ASPNET.CQRS.Commands; using Microsoft.Extensions.Logging; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example.Commands +namespace ASPNET.CQRS.Example.Commands { [CQRSRoute("/ping-complex")] public class PingComplexCommandHandler : ICommandHandler diff --git a/example/Program.cs b/example/Program.cs index 88327af..048bd99 100644 --- a/example/Program.cs +++ b/example/Program.cs @@ -7,7 +7,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example +namespace ASPNET.CQRS.Example { public class Program { diff --git a/example/Properties/launchSettings.json b/example/Properties/launchSettings.json index d24431d..5bc91e9 100644 --- a/example/Properties/launchSettings.json +++ b/example/Properties/launchSettings.json @@ -17,7 +17,7 @@ "ASPNETCORE_ENVIRONMENT": "Development" } }, - "VladyslavChyzhevskyi.ASPNET.CQRS.Example": { + "ASPNET.CQRS.Example": { "commandName": "Project", "launchBrowser": true, "launchUrl": "weatherforecast", diff --git a/example/Queries/PingComplexQuery.cs b/example/Queries/PingComplexQuery.cs index 0e59ffe..01cb500 100644 --- a/example/Queries/PingComplexQuery.cs +++ b/example/Queries/PingComplexQuery.cs @@ -1,8 +1,8 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS; +using ASPNET.CQRS.Queries; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example.Queries +namespace ASPNET.CQRS.Example.Queries { [CQRSRoute("/ping-complex")] public class PingComplexQueryHandler : IQueryHandler diff --git a/example/Queries/PingQuery.cs b/example/Queries/PingQuery.cs index 4d27c9d..8cef5b2 100644 --- a/example/Queries/PingQuery.cs +++ b/example/Queries/PingQuery.cs @@ -1,8 +1,8 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS; +using ASPNET.CQRS.Queries; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example.Queries +namespace ASPNET.CQRS.Example.Queries { [CQRSRoute("/ping")] public class PingQueryHandler : IQueryHandler diff --git a/example/Startup.cs b/example/Startup.cs index 89c62ca..2b72f43 100644 --- a/example/Startup.cs +++ b/example/Startup.cs @@ -12,7 +12,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Example +namespace ASPNET.CQRS.Example { public class Startup { diff --git a/src/VladyslavChyzhevskyi.ASPNET.CQRS.csproj b/src/ASPNET.CQRS.csproj similarity index 91% rename from src/VladyslavChyzhevskyi.ASPNET.CQRS.csproj rename to src/ASPNET.CQRS.csproj index fefca1f..8a67879 100644 --- a/src/VladyslavChyzhevskyi.ASPNET.CQRS.csproj +++ b/src/ASPNET.CQRS.csproj @@ -7,7 +7,7 @@ Library net5.0 - VladyslavChyzhevskyi.ASPNET.CQRS + ASPNET.CQRS 1.0-rc1 Vladyslav Chyzhevskyi Vladyslav Chyzhevskyi diff --git a/src/CQRSFeature.cs b/src/CQRSFeature.cs index 000600c..4b16db2 100644 --- a/src/CQRSFeature.cs +++ b/src/CQRSFeature.cs @@ -1,4 +1,4 @@ -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { public class CQRSFeature { diff --git a/src/CQRSFeatureProvider.cs b/src/CQRSFeatureProvider.cs index f7c61c4..180f154 100644 --- a/src/CQRSFeatureProvider.cs +++ b/src/CQRSFeatureProvider.cs @@ -2,13 +2,13 @@ using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using VladyslavChyzhevskyi.ASPNET.CQRS.Commands; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS.Commands; +using ASPNET.CQRS.Queries; using Microsoft.Extensions.Options; -[assembly: InternalsVisibleTo("VladyslavChyzhevskyi.ASPNET.CQRS.Tests")] +[assembly: InternalsVisibleTo("ASPNET.CQRS.Tests")] -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { internal class CQRSFeatureProvider : ICQRSFeatureProvider diff --git a/src/CQRSHandlerDescriptor.cs b/src/CQRSHandlerDescriptor.cs index fafaec0..1f83c21 100644 --- a/src/CQRSHandlerDescriptor.cs +++ b/src/CQRSHandlerDescriptor.cs @@ -1,6 +1,6 @@ using System; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { public class CQRSHandlerDescriptor { diff --git a/src/CQRSMiddleware.cs b/src/CQRSMiddleware.cs index 6cfac15..4032d03 100644 --- a/src/CQRSMiddleware.cs +++ b/src/CQRSMiddleware.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { internal partial class CQRSMiddleware { diff --git a/src/CQRSMiddlewareExtensions.cs b/src/CQRSMiddlewareExtensions.cs index 5e2df56..5a915ec 100644 --- a/src/CQRSMiddlewareExtensions.cs +++ b/src/CQRSMiddlewareExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Options; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { public static class CQRSMiddlewareExtensions { diff --git a/src/CQRSOptions.cs b/src/CQRSOptions.cs index bb354d0..b7d092a 100644 --- a/src/CQRSOptions.cs +++ b/src/CQRSOptions.cs @@ -1,6 +1,6 @@ using System.Reflection; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { public class CQRSOptions { diff --git a/src/CQRSRouteAttribute.cs b/src/CQRSRouteAttribute.cs index 2a5a171..9978272 100644 --- a/src/CQRSRouteAttribute.cs +++ b/src/CQRSRouteAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] public sealed class CQRSRouteAttribute : System.Attribute diff --git a/src/Commands/CQRSMiddleware.HandleCommand.cs b/src/Commands/CQRSMiddleware.HandleCommand.cs index 584af8c..e85d46b 100644 --- a/src/Commands/CQRSMiddleware.HandleCommand.cs +++ b/src/Commands/CQRSMiddleware.HandleCommand.cs @@ -5,13 +5,13 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Commands; -using VladyslavChyzhevskyi.ASPNET.CQRS.Helpers; +using ASPNET.CQRS.Commands; +using ASPNET.CQRS.Helpers; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { partial class CQRSMiddleware { diff --git a/src/Commands/ICommand.cs b/src/Commands/ICommand.cs index a7435d2..db48ab1 100644 --- a/src/Commands/ICommand.cs +++ b/src/Commands/ICommand.cs @@ -1,4 +1,4 @@ -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Commands +namespace ASPNET.CQRS.Commands { public interface ICommand { diff --git a/src/Commands/ICommandHandler.cs b/src/Commands/ICommandHandler.cs index 9d73c27..12f3640 100644 --- a/src/Commands/ICommandHandler.cs +++ b/src/Commands/ICommandHandler.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Commands +namespace ASPNET.CQRS.Commands { public interface ICommandHandler where TCommand : ICommand diff --git a/src/Helpers/ReflectionHelpers.cs b/src/Helpers/ReflectionHelpers.cs index 2d43acb..1002d73 100644 --- a/src/Helpers/ReflectionHelpers.cs +++ b/src/Helpers/ReflectionHelpers.cs @@ -2,11 +2,11 @@ using System.Linq; using System.Reflection; using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS.Queries; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Helpers +namespace ASPNET.CQRS.Helpers { internal static class ReflectionHelpers { diff --git a/src/HttpContextExtensions.cs b/src/HttpContextExtensions.cs index c3a7769..d8f24f6 100644 --- a/src/HttpContextExtensions.cs +++ b/src/HttpContextExtensions.cs @@ -1,7 +1,7 @@ using System.Net; using Microsoft.AspNetCore.Http; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { internal static class HttpContextExtensions { diff --git a/src/ICQRSFeatureProvider.cs b/src/ICQRSFeatureProvider.cs index 565b1e9..b3ff228 100644 --- a/src/ICQRSFeatureProvider.cs +++ b/src/ICQRSFeatureProvider.cs @@ -1,4 +1,4 @@ -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { internal interface ICQRSFeatureProvider { diff --git a/src/IServiceCollectionExtensions.cs b/src/IServiceCollectionExtensions.cs index 87262da..a8f9e14 100644 --- a/src/IServiceCollectionExtensions.cs +++ b/src/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ using System; using Microsoft.Extensions.DependencyInjection; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { public static class IServiceCollectionExtensions { diff --git a/src/Queries/CQRSMiddleware.HandleQuery.cs b/src/Queries/CQRSMiddleware.HandleQuery.cs index e12b070..2a396b0 100644 --- a/src/Queries/CQRSMiddleware.HandleQuery.cs +++ b/src/Queries/CQRSMiddleware.HandleQuery.cs @@ -5,14 +5,14 @@ using System.Net; using System.Reflection; using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Helpers; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS.Helpers; +using ASPNET.CQRS.Queries; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.WebUtilities; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; -namespace VladyslavChyzhevskyi.ASPNET.CQRS +namespace ASPNET.CQRS { partial class CQRSMiddleware { diff --git a/src/Queries/IQuery.cs b/src/Queries/IQuery.cs index a257518..a79188e 100644 --- a/src/Queries/IQuery.cs +++ b/src/Queries/IQuery.cs @@ -1,4 +1,4 @@ -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Queries +namespace ASPNET.CQRS.Queries { public interface IQuery { diff --git a/src/Queries/IQueryHandler.cs b/src/Queries/IQueryHandler.cs index 8f87ba6..880359d 100644 --- a/src/Queries/IQueryHandler.cs +++ b/src/Queries/IQueryHandler.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Queries +namespace ASPNET.CQRS.Queries { public interface IQueryHandler where TQuery : IQuery diff --git a/tests/VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj b/tests/ASPNET.CQRS.Tests.csproj similarity index 79% rename from tests/VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj rename to tests/ASPNET.CQRS.Tests.csproj index 2bd5356..8891596 100644 --- a/tests/VladyslavChyzhevskyi.ASPNET.CQRS.Tests.csproj +++ b/tests/ASPNET.CQRS.Tests.csproj @@ -11,7 +11,7 @@ - + diff --git a/tests/CommandSelectorTests.cs b/tests/CommandSelectorTests.cs index a1f72cd..7e34fc8 100644 --- a/tests/CommandSelectorTests.cs +++ b/tests/CommandSelectorTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using VladyslavChyzhevskyi.ASPNET.CQRS; -using VladyslavChyzhevskyi.ASPNET.CQRS.Tests.TestCases; +using ASPNET.CQRS; +using ASPNET.CQRS.Tests.TestCases; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Tests +namespace ASPNET.CQRS.Tests { [TestFixture] public class CommandSlectorTests diff --git a/tests/QuerySelectorTests.cs b/tests/QuerySelectorTests.cs index 421113d..aef23c0 100644 --- a/tests/QuerySelectorTests.cs +++ b/tests/QuerySelectorTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using VladyslavChyzhevskyi.ASPNET.CQRS; -using VladyslavChyzhevskyi.ASPNET.CQRS.Tests.TestCases; +using ASPNET.CQRS; +using ASPNET.CQRS.Tests.TestCases; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Tests +namespace ASPNET.CQRS.Tests { [TestFixture] public class QuerySlectorTests diff --git a/tests/TestCases/ComplexQuery.cs b/tests/TestCases/ComplexQuery.cs index d39d233..8a6f1fa 100644 --- a/tests/TestCases/ComplexQuery.cs +++ b/tests/TestCases/ComplexQuery.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS.Queries; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Tests.TestCases +namespace ASPNET.CQRS.Tests.TestCases { public class ComplexQueryTestCase1 : IQueryHandler { diff --git a/tests/TestCases/SimpleCommand.cs b/tests/TestCases/SimpleCommand.cs index 22041f3..f63adac 100644 --- a/tests/TestCases/SimpleCommand.cs +++ b/tests/TestCases/SimpleCommand.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Commands; +using ASPNET.CQRS.Commands; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Tests.TestCases +namespace ASPNET.CQRS.Tests.TestCases { public class SimpleCommandTestCase1 : ICommandHandler { diff --git a/tests/TestCases/SimpleQuery.cs b/tests/TestCases/SimpleQuery.cs index 96f841b..c981ac3 100644 --- a/tests/TestCases/SimpleQuery.cs +++ b/tests/TestCases/SimpleQuery.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using VladyslavChyzhevskyi.ASPNET.CQRS.Queries; +using ASPNET.CQRS.Queries; -namespace VladyslavChyzhevskyi.ASPNET.CQRS.Tests.TestCases +namespace ASPNET.CQRS.Tests.TestCases { public class SimpleQueryTestCase1 : IQueryHandler {