diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 2aeecf4..8e9014b 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -20,10 +20,10 @@ jobs: - name: Generate package run: | TAG_NAME=${GITHUB_REF#refs/tags/} - dotnet pack -o out -p:PackageVersion=$TAG_NAME + dotnet pack -c Release -o out -p:PackageVersion=$TAG_NAME - name: Push package run: | dotnet nuget push out/*.nupkg \ - --api-key ${{ secrets.PUBLIC_NUGET_API_KEY }} \ - --source "https://api.nuget.org/v3/index.json" \ - --skip-duplicate + --api-key $PUBLIC_NUGET_API_KEY \ + --source "https://api.nuget.org/v3/index.json" \ + --skip-duplicate diff --git a/AspNetCore.RestFramework.sln b/NDjango.RestFramework.sln similarity index 79% rename from AspNetCore.RestFramework.sln rename to NDjango.RestFramework.sln index 0f8031a..b082991 100644 --- a/AspNetCore.RestFramework.sln +++ b/NDjango.RestFramework.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31424.327 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCore.RestFramework.Core.Test", "tests\AspNetCore.RestFramework.Core.Test\AspNetCore.RestFramework.Core.Test.csproj", "{5C337F78-3254-477E-9937-42FD595F9733}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NDjango.RestFramework.Test", "tests\NDjango.RestFramework.Test\NDjango.RestFramework.Test.csproj", "{5C337F78-3254-477E-9937-42FD595F9733}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCore.RestFramework.Core", "src\AspNetCore.RestFramework.Core\AspNetCore.RestFramework.Core.csproj", "{CA09285F-319F-459A-844D-9AF468C0ABF5}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NDjango.RestFramework", "src\NDjango.RestFramework\NDjango.RestFramework.csproj", "{CA09285F-319F-459A-844D-9AF468C0ABF5}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/README.md b/README.md index 0427300..6d69314 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# AspNetCore.RestFramework +# NDjango.RestFramework -AspNetCore REST Framework makes you focus on business, not on boilerplate code. It's designed to follow the famous Django's slogan "The web framework for perfectionists with deadlines." 🤺 +NDjango Rest Framework makes you focus on business, not on boilerplate code. It's designed to follow the famous Django's slogan "The web framework for perfectionists with deadlines." 🤺 This is a copy of the convention established by [Django REST framework](https://github.com/encode/django-rest-framework), though translated to C# and adapted to the .NET Core framework. diff --git a/scripts/start-sonarcloud.sh b/scripts/start-sonarcloud.sh index 2f4f713..6b82c90 100755 --- a/scripts/start-sonarcloud.sh +++ b/scripts/start-sonarcloud.sh @@ -2,12 +2,15 @@ set -eu -o pipefail +PROJECT_KEY="juntossomosmais_NDjango.RestFramework" +ORGANIZATION="juntossomosmais" + # You should start the scanner prior building your project and running your tests if [ -n "${PR_SOURCE_BRANCH:-}" ]; then dotnet sonarscanner begin \ /d:sonar.login="$SONAR_TOKEN" \ - /k:"juntossomosmais_AspNetCore.RestFramework" \ - /o:"juntossomosmais" \ + /k:"$PROJECT_KEY" \ + /o:"$ORGANIZATION" \ /d:sonar.host.url="https://sonarcloud.io" \ /d:sonar.cs.opencover.reportsPaths="**/*/coverage.opencover.xml" \ /d:sonar.cs.vstest.reportsPaths="**/*/*.trx" \ @@ -18,8 +21,8 @@ else dotnet sonarscanner begin \ /d:sonar.login="$SONAR_TOKEN" \ /v:"$PROJECT_VERSION" \ - /k:"juntossomosmais_AspNetCore.RestFramework" \ - /o:"juntossomosmais" \ + /k:"$PROJECT_KEY" \ + /o:"$ORGANIZATION" \ /d:sonar.host.url="https://sonarcloud.io" \ /d:sonar.cs.opencover.reportsPaths="**/*/coverage.opencover.xml" \ /d:sonar.cs.vstest.reportsPaths="**/*/*.trx" \ diff --git a/scripts/start-tests.sh b/scripts/start-tests.sh index f43c81d..27da9ab 100755 --- a/scripts/start-tests.sh +++ b/scripts/start-tests.sh @@ -2,7 +2,7 @@ set -e -dotnet test tests/AspNetCore.RestFramework.Core.Test \ +dotnet test tests/NDjango.RestFramework.Test \ --configuration Release \ --logger trx \ --logger "console;verbosity=normal" \ diff --git a/src/AspNetCore.RestFramework.Core/Base/ActionOptions.cs b/src/NDjango.RestFramework/Base/ActionOptions.cs similarity index 73% rename from src/AspNetCore.RestFramework.Core/Base/ActionOptions.cs rename to src/NDjango.RestFramework/Base/ActionOptions.cs index b53f701..5afad1b 100644 --- a/src/AspNetCore.RestFramework.Core/Base/ActionOptions.cs +++ b/src/NDjango.RestFramework/Base/ActionOptions.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base; +namespace NDjango.RestFramework.Base; public class ActionOptions { diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseController.cs b/src/NDjango.RestFramework/Base/BaseController.cs similarity index 97% rename from src/AspNetCore.RestFramework.Core/Base/BaseController.cs rename to src/NDjango.RestFramework/Base/BaseController.cs index 5f71a7f..6ab9c41 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseController.cs +++ b/src/NDjango.RestFramework/Base/BaseController.cs @@ -5,15 +5,15 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using AspNetCore.RestFramework.Core.Filters; -using AspNetCore.RestFramework.Core.Serializer; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using AspNetCore.RestFramework.Core.Errors; -using AspNetCore.RestFramework.Core.Helpers; +using NDjango.RestFramework.Errors; +using NDjango.RestFramework.Filters; +using NDjango.RestFramework.Helpers; +using NDjango.RestFramework.Serializer; -namespace AspNetCore.RestFramework.Core.Base +namespace NDjango.RestFramework.Base { [Produces("application/json")] public abstract class BaseController : ControllerBase diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseDto.cs b/src/NDjango.RestFramework/Base/BaseDto.cs similarity index 76% rename from src/AspNetCore.RestFramework.Core/Base/BaseDto.cs rename to src/NDjango.RestFramework/Base/BaseDto.cs index 1e55249..141a2a4 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseDto.cs +++ b/src/NDjango.RestFramework/Base/BaseDto.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base +namespace NDjango.RestFramework.Base { public abstract class BaseDto { diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseErrorResponse.cs b/src/NDjango.RestFramework/Base/BaseErrorResponse.cs similarity index 83% rename from src/AspNetCore.RestFramework.Core/Base/BaseErrorResponse.cs rename to src/NDjango.RestFramework/Base/BaseErrorResponse.cs index 1e3f7bc..ab88990 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseErrorResponse.cs +++ b/src/NDjango.RestFramework/Base/BaseErrorResponse.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace AspNetCore.RestFramework.Core.Base +namespace NDjango.RestFramework.Base { public abstract class BaseErrorResponse { diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseFilter.cs b/src/NDjango.RestFramework/Base/BaseFilter.cs similarity index 86% rename from src/AspNetCore.RestFramework.Core/Base/BaseFilter.cs rename to src/NDjango.RestFramework/Base/BaseFilter.cs index 7935034..f8660c3 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseFilter.cs +++ b/src/NDjango.RestFramework/Base/BaseFilter.cs @@ -1,7 +1,7 @@ using System.Linq; using Microsoft.EntityFrameworkCore; -namespace AspNetCore.RestFramework.Core.Base; +namespace NDjango.RestFramework.Base; public class BaseFilter where TContext : DbContext diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseMessages.cs b/src/NDjango.RestFramework/Base/BaseMessages.cs similarity index 84% rename from src/AspNetCore.RestFramework.Core/Base/BaseMessages.cs rename to src/NDjango.RestFramework/Base/BaseMessages.cs index 3aaae7d..d34689d 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseMessages.cs +++ b/src/NDjango.RestFramework/Base/BaseMessages.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base; +namespace NDjango.RestFramework.Base; public static class BaseMessages { diff --git a/src/AspNetCore.RestFramework.Core/Base/BaseModel.cs b/src/NDjango.RestFramework/Base/BaseModel.cs similarity index 74% rename from src/AspNetCore.RestFramework.Core/Base/BaseModel.cs rename to src/NDjango.RestFramework/Base/BaseModel.cs index 7e16ec1..0e28567 100644 --- a/src/AspNetCore.RestFramework.Core/Base/BaseModel.cs +++ b/src/NDjango.RestFramework/Base/BaseModel.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base; +namespace NDjango.RestFramework.Base; public abstract class BaseModel { diff --git a/src/AspNetCore.RestFramework.Core/Base/IBaseModel.cs b/src/NDjango.RestFramework/Base/IBaseModel.cs similarity index 65% rename from src/AspNetCore.RestFramework.Core/Base/IBaseModel.cs rename to src/NDjango.RestFramework/Base/IBaseModel.cs index 46808fe..5ef0d68 100644 --- a/src/AspNetCore.RestFramework.Core/Base/IBaseModel.cs +++ b/src/NDjango.RestFramework/Base/IBaseModel.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base; +namespace NDjango.RestFramework.Base; public interface IBaseModel { diff --git a/src/AspNetCore.RestFramework.Core/Base/PagedBaseResponse.cs b/src/NDjango.RestFramework/Base/PagedBaseResponse.cs similarity index 74% rename from src/AspNetCore.RestFramework.Core/Base/PagedBaseResponse.cs rename to src/NDjango.RestFramework/Base/PagedBaseResponse.cs index 45cb185..da4f7dd 100644 --- a/src/AspNetCore.RestFramework.Core/Base/PagedBaseResponse.cs +++ b/src/NDjango.RestFramework/Base/PagedBaseResponse.cs @@ -1,4 +1,4 @@ -namespace AspNetCore.RestFramework.Core.Base +namespace NDjango.RestFramework.Base { public class PagedBaseResponse { diff --git a/src/AspNetCore.RestFramework.Core/Errors/UnexpectedError.cs b/src/NDjango.RestFramework/Errors/UnexpectedError.cs similarity index 79% rename from src/AspNetCore.RestFramework.Core/Errors/UnexpectedError.cs rename to src/NDjango.RestFramework/Errors/UnexpectedError.cs index 2951b34..c2abed1 100644 --- a/src/AspNetCore.RestFramework.Core/Errors/UnexpectedError.cs +++ b/src/NDjango.RestFramework/Errors/UnexpectedError.cs @@ -1,7 +1,7 @@ -using AspNetCore.RestFramework.Core.Base; -using System.Collections.Generic; +using System.Collections.Generic; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Errors +namespace NDjango.RestFramework.Errors { public class UnexpectedError : BaseErrorResponse { diff --git a/src/AspNetCore.RestFramework.Core/Errors/ValidationErrors.cs b/src/NDjango.RestFramework/Errors/ValidationErrors.cs similarity index 73% rename from src/AspNetCore.RestFramework.Core/Errors/ValidationErrors.cs rename to src/NDjango.RestFramework/Errors/ValidationErrors.cs index f4bb97f..a287fa9 100644 --- a/src/AspNetCore.RestFramework.Core/Errors/ValidationErrors.cs +++ b/src/NDjango.RestFramework/Errors/ValidationErrors.cs @@ -1,7 +1,7 @@ -using AspNetCore.RestFramework.Core.Base; -using System.Collections.Generic; +using System.Collections.Generic; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Errors +namespace NDjango.RestFramework.Errors { public class ValidationErrors : BaseErrorResponse { diff --git a/src/AspNetCore.RestFramework.Core/Extensions/ModelStateValidationExtensions.cs b/src/NDjango.RestFramework/Extensions/ModelStateValidationExtensions.cs similarity index 85% rename from src/AspNetCore.RestFramework.Core/Extensions/ModelStateValidationExtensions.cs rename to src/NDjango.RestFramework/Extensions/ModelStateValidationExtensions.cs index a92e625..6dcf2d9 100644 --- a/src/AspNetCore.RestFramework.Core/Extensions/ModelStateValidationExtensions.cs +++ b/src/NDjango.RestFramework/Extensions/ModelStateValidationExtensions.cs @@ -1,10 +1,10 @@ -using AspNetCore.RestFramework.Core.Errors; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic; using System.Linq; +using NDjango.RestFramework.Errors; -namespace AspNetCore.RestFramework.Core.Extensions +namespace NDjango.RestFramework.Extensions { public static class ModelStateValidationExtensions { diff --git a/src/AspNetCore.RestFramework.Core/Filters/Filter.cs b/src/NDjango.RestFramework/Filters/Filter.cs similarity index 81% rename from src/AspNetCore.RestFramework.Core/Filters/Filter.cs rename to src/NDjango.RestFramework/Filters/Filter.cs index 59def8a..01c3bf4 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/Filter.cs +++ b/src/NDjango.RestFramework/Filters/Filter.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; using System.Linq; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public abstract class Filter { diff --git a/src/AspNetCore.RestFramework.Core/Filters/FilterBuilder.cs b/src/NDjango.RestFramework/Filters/FilterBuilder.cs similarity index 81% rename from src/AspNetCore.RestFramework.Core/Filters/FilterBuilder.cs rename to src/NDjango.RestFramework/Filters/FilterBuilder.cs index bcb1fb1..1dd5506 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/FilterBuilder.cs +++ b/src/NDjango.RestFramework/Filters/FilterBuilder.cs @@ -1,8 +1,8 @@ using Microsoft.EntityFrameworkCore; using System.Linq; -using AspNetCore.RestFramework.Core.Base; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public class FilterBuilder : BaseFilter where TContext : DbContext diff --git a/src/AspNetCore.RestFramework.Core/Filters/QueryStringFilter.cs b/src/NDjango.RestFramework/Filters/QueryStringFilter.cs similarity index 97% rename from src/AspNetCore.RestFramework.Core/Filters/QueryStringFilter.cs rename to src/NDjango.RestFramework/Filters/QueryStringFilter.cs index fbbe55f..5a0fa2b 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/QueryStringFilter.cs +++ b/src/NDjango.RestFramework/Filters/QueryStringFilter.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Linq.Expressions; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public class QueryStringFilter : Filter { diff --git a/src/AspNetCore.RestFramework.Core/Filters/QueryStringIdRangeFilter.cs b/src/NDjango.RestFramework/Filters/QueryStringIdRangeFilter.cs similarity index 90% rename from src/AspNetCore.RestFramework.Core/Filters/QueryStringIdRangeFilter.cs rename to src/NDjango.RestFramework/Filters/QueryStringIdRangeFilter.cs index 6e7e22d..314738b 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/QueryStringIdRangeFilter.cs +++ b/src/NDjango.RestFramework/Filters/QueryStringIdRangeFilter.cs @@ -1,9 +1,9 @@ -using AspNetCore.RestFramework.Core.Base; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; using System; using System.Linq; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public class QueryStringIdRangeFilter : Filter where TEntity : BaseModel diff --git a/src/AspNetCore.RestFramework.Core/Filters/QueryStringSearchFilter.cs b/src/NDjango.RestFramework/Filters/QueryStringSearchFilter.cs similarity index 98% rename from src/AspNetCore.RestFramework.Core/Filters/QueryStringSearchFilter.cs rename to src/NDjango.RestFramework/Filters/QueryStringSearchFilter.cs index ac42860..96e433d 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/QueryStringSearchFilter.cs +++ b/src/NDjango.RestFramework/Filters/QueryStringSearchFilter.cs @@ -6,7 +6,7 @@ using System.Linq.Expressions; using System.Reflection; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public class QueryStringSearchFilter : Filter { diff --git a/src/AspNetCore.RestFramework.Core/Filters/SortFilter.cs b/src/NDjango.RestFramework/Filters/SortFilter.cs similarity index 98% rename from src/AspNetCore.RestFramework.Core/Filters/SortFilter.cs rename to src/NDjango.RestFramework/Filters/SortFilter.cs index 1b97978..f2cf573 100644 --- a/src/AspNetCore.RestFramework.Core/Filters/SortFilter.cs +++ b/src/NDjango.RestFramework/Filters/SortFilter.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Linq.Expressions; -namespace AspNetCore.RestFramework.Core.Filters +namespace NDjango.RestFramework.Filters { public class SortFilter { diff --git a/src/AspNetCore.RestFramework.Core/Helpers/PartialJsonObject.cs b/src/NDjango.RestFramework/Helpers/PartialJsonObject.cs similarity index 99% rename from src/AspNetCore.RestFramework.Core/Helpers/PartialJsonObject.cs rename to src/NDjango.RestFramework/Helpers/PartialJsonObject.cs index c3ece53..1969ff9 100644 --- a/src/AspNetCore.RestFramework.Core/Helpers/PartialJsonObject.cs +++ b/src/NDjango.RestFramework/Helpers/PartialJsonObject.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Linq.Expressions; -namespace AspNetCore.RestFramework.Core.Helpers +namespace NDjango.RestFramework.Helpers { [JsonConverter(typeof(PartialJsonObjectConverter))] public class PartialJsonObject : PartialJsonObject where T : class diff --git a/src/AspNetCore.RestFramework.Core/AspNetCore.RestFramework.Core.csproj b/src/NDjango.RestFramework/NDjango.RestFramework.csproj similarity index 70% rename from src/AspNetCore.RestFramework.Core/AspNetCore.RestFramework.Core.csproj rename to src/NDjango.RestFramework/NDjango.RestFramework.csproj index 8df3dfb..f125b24 100644 --- a/src/AspNetCore.RestFramework.Core/AspNetCore.RestFramework.Core.csproj +++ b/src/NDjango.RestFramework/NDjango.RestFramework.csproj @@ -3,12 +3,12 @@ net8.0 - AspNetCore.RestFramework + NDjango.RestFramework andresantarosa,fabio_almeida100,phmonte,ricardochaves,willianantunes - Don't code a bunch of code to create CRUD applications. Use AspNetCore REST Framework, inspired by Django REST framework! It aims to provide a robust and flexible foundation for building RESTful APIs using ASP.NET Core. - https://github.com/juntossomosmais/AspNetCore.RestFramework/blob/master/LICENSE + Don't code a bunch of code to create CRUD applications. Use NDjango Rest Framework, inspired by Django REST framework! It aims to provide a robust and flexible foundation for building RESTful APIs using ASP.NET Core. + https://github.com/juntossomosmais/AspNetCore.RestFramework/blob/main/LICENSE https://github.com/juntossomosmais/AspNetCore.RestFramework - api rest drf django pagination crud + api rest drf django ndjango pagination crud true snupkg diff --git a/src/AspNetCore.RestFramework.Core/Serializer/JsonTransform.cs b/src/NDjango.RestFramework/Serializer/JsonTransform.cs similarity index 96% rename from src/AspNetCore.RestFramework.Core/Serializer/JsonTransform.cs rename to src/NDjango.RestFramework/Serializer/JsonTransform.cs index 4de0269..7ff0681 100644 --- a/src/AspNetCore.RestFramework.Core/Serializer/JsonTransform.cs +++ b/src/NDjango.RestFramework/Serializer/JsonTransform.cs @@ -5,7 +5,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace AspNetCore.RestFramework.Core.Serializer; +namespace NDjango.RestFramework.Serializer; public class JsonTransform : DefaultContractResolver { diff --git a/src/AspNetCore.RestFramework.Core/Serializer/Serializer.cs b/src/NDjango.RestFramework/Serializer/Serializer.cs similarity index 97% rename from src/AspNetCore.RestFramework.Core/Serializer/Serializer.cs rename to src/NDjango.RestFramework/Serializer/Serializer.cs index 83c2838..6c33aac 100644 --- a/src/AspNetCore.RestFramework.Core/Serializer/Serializer.cs +++ b/src/NDjango.RestFramework/Serializer/Serializer.cs @@ -4,10 +4,10 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using AspNetCore.RestFramework.Core.Base; -using AspNetCore.RestFramework.Core.Helpers; +using NDjango.RestFramework.Base; +using NDjango.RestFramework.Helpers; -namespace AspNetCore.RestFramework.Core.Serializer +namespace NDjango.RestFramework.Serializer { public class Serializer where TDestination : BaseModel diff --git a/src/AspNetCore.RestFramework.Core/packages.lock.json b/src/NDjango.RestFramework/packages.lock.json similarity index 100% rename from src/AspNetCore.RestFramework.Core/packages.lock.json rename to src/NDjango.RestFramework/packages.lock.json diff --git a/tests/AspNetCore.RestFramework.Core.Test/Base/BaseControllerTests.cs b/tests/NDjango.RestFramework.Test/Base/BaseControllerTests.cs similarity index 99% rename from tests/AspNetCore.RestFramework.Core.Test/Base/BaseControllerTests.cs rename to tests/NDjango.RestFramework.Test/Base/BaseControllerTests.cs index d0f0eb0..a054dc1 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Base/BaseControllerTests.cs +++ b/tests/NDjango.RestFramework.Test/Base/BaseControllerTests.cs @@ -6,9 +6,9 @@ using System.Text; using System.Threading.Tasks; using System.Web; -using AspNetCore.RestFramework.Core.Base; -using AspNetCore.RestFramework.Core.Errors; -using AspNetCore.RestFramework.Core.Test.Support; +using NDjango.RestFramework.Base; +using NDjango.RestFramework.Errors; +using NDjango.RestFramework.Test.Support; using FluentAssertions; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.EntityFrameworkCore; @@ -16,7 +16,7 @@ using Newtonsoft.Json; using Xunit; -namespace AspNetCore.RestFramework.Core.Test.Base; +namespace NDjango.RestFramework.Test.Base; public class BaseControllerTests { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Helpers/PartialJsonObjectTests.cs b/tests/NDjango.RestFramework.Test/Helpers/PartialJsonObjectTests.cs similarity index 99% rename from tests/AspNetCore.RestFramework.Core.Test/Helpers/PartialJsonObjectTests.cs rename to tests/NDjango.RestFramework.Test/Helpers/PartialJsonObjectTests.cs index 7ef23b0..a893c26 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Helpers/PartialJsonObjectTests.cs +++ b/tests/NDjango.RestFramework.Test/Helpers/PartialJsonObjectTests.cs @@ -1,12 +1,12 @@ using System.Collections.Generic; using System.Linq; -using AspNetCore.RestFramework.Core.Helpers; +using NDjango.RestFramework.Helpers; using FluentAssertions; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; -namespace AspNetCore.RestFramework.Core.Test.Helpers; +namespace NDjango.RestFramework.Test.Helpers; public class PartialJsonObjectTests { diff --git a/tests/AspNetCore.RestFramework.Core.Test/AspNetCore.RestFramework.Core.Test.csproj b/tests/NDjango.RestFramework.Test/NDjango.RestFramework.Test.csproj similarity index 92% rename from tests/AspNetCore.RestFramework.Core.Test/AspNetCore.RestFramework.Core.Test.csproj rename to tests/NDjango.RestFramework.Test/NDjango.RestFramework.Test.csproj index 8294512..5869b6d 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/AspNetCore.RestFramework.Core.Test.csproj +++ b/tests/NDjango.RestFramework.Test/NDjango.RestFramework.Test.csproj @@ -25,7 +25,7 @@ - + diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/AppDbContext.cs b/tests/NDjango.RestFramework.Test/Support/AppDbContext.cs similarity index 94% rename from tests/AspNetCore.RestFramework.Core.Test/Support/AppDbContext.cs rename to tests/NDjango.RestFramework.Test/Support/AppDbContext.cs index cdf9999..ff288e6 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/AppDbContext.cs +++ b/tests/NDjango.RestFramework.Test/Support/AppDbContext.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class AppDbContext : DbContext { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/Controllers.cs b/tests/NDjango.RestFramework.Test/Support/Controllers.cs similarity index 94% rename from tests/AspNetCore.RestFramework.Core.Test/Support/Controllers.cs rename to tests/NDjango.RestFramework.Test/Support/Controllers.cs index 5dc802d..9d539f0 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/Controllers.cs +++ b/tests/NDjango.RestFramework.Test/Support/Controllers.cs @@ -1,11 +1,11 @@ using System; -using AspNetCore.RestFramework.Core.Base; -using AspNetCore.RestFramework.Core.Filters; -using AspNetCore.RestFramework.Core.Serializer; +using NDjango.RestFramework.Base; +using NDjango.RestFramework.Filters; +using NDjango.RestFramework.Serializer; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; #region Controllers diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/DTOs.cs b/tests/NDjango.RestFramework.Test/Support/DTOs.cs similarity index 86% rename from tests/AspNetCore.RestFramework.Core.Test/Support/DTOs.cs rename to tests/NDjango.RestFramework.Test/Support/DTOs.cs index b104c0f..7efbbd3 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/DTOs.cs +++ b/tests/NDjango.RestFramework.Test/Support/DTOs.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using AspNetCore.RestFramework.Core.Base; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class CustomerDocumentDto : BaseDto { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/FakeGenerator.cs b/tests/NDjango.RestFramework.Test/Support/FakeGenerator.cs similarity index 98% rename from tests/AspNetCore.RestFramework.Core.Test/Support/FakeGenerator.cs rename to tests/NDjango.RestFramework.Test/Support/FakeGenerator.cs index 53f4417..ae31253 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/FakeGenerator.cs +++ b/tests/NDjango.RestFramework.Test/Support/FakeGenerator.cs @@ -4,7 +4,7 @@ using Bogus; using Bogus.Extensions.Brazil; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public static class FakeDataGenerator { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/FakeProgram.cs b/tests/NDjango.RestFramework.Test/Support/FakeProgram.cs similarity index 96% rename from tests/AspNetCore.RestFramework.Core.Test/Support/FakeProgram.cs rename to tests/NDjango.RestFramework.Test/Support/FakeProgram.cs index d59eda3..f57aa18 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/FakeProgram.cs +++ b/tests/NDjango.RestFramework.Test/Support/FakeProgram.cs @@ -1,9 +1,9 @@ using System; using System.IO; using System.Linq; -using AspNetCore.RestFramework.Core.Extensions; -using AspNetCore.RestFramework.Core.Serializer; -using AspNetCore.RestFramework.Core.Test.Support; +using NDjango.RestFramework.Extensions; +using NDjango.RestFramework.Serializer; +using NDjango.RestFramework.Test.Support; using FluentValidation; using FluentValidation.AspNetCore; using Microsoft.AspNetCore.Builder; diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/Filters.cs b/tests/NDjango.RestFramework.Test/Support/Filters.cs similarity index 92% rename from tests/AspNetCore.RestFramework.Core.Test/Support/Filters.cs rename to tests/NDjango.RestFramework.Test/Support/Filters.cs index db6290a..d6d4c2e 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/Filters.cs +++ b/tests/NDjango.RestFramework.Test/Support/Filters.cs @@ -1,9 +1,9 @@ using System.Linq; -using AspNetCore.RestFramework.Core.Filters; +using NDjango.RestFramework.Filters; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class CustomerDocumentIncludeFilter : Filter { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/IntegrationTestsFixture.cs b/tests/NDjango.RestFramework.Test/Support/IntegrationTestsFixture.cs similarity index 89% rename from tests/AspNetCore.RestFramework.Core.Test/Support/IntegrationTestsFixture.cs rename to tests/NDjango.RestFramework.Test/Support/IntegrationTestsFixture.cs index b5b3713..0b12931 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/IntegrationTestsFixture.cs +++ b/tests/NDjango.RestFramework.Test/Support/IntegrationTestsFixture.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.DependencyInjection; using Xunit; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class IntegrationTests { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/Models.cs b/tests/NDjango.RestFramework.Test/Support/Models.cs similarity index 92% rename from tests/AspNetCore.RestFramework.Core.Test/Support/Models.cs rename to tests/NDjango.RestFramework.Test/Support/Models.cs index bd89587..dd0f425 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/Models.cs +++ b/tests/NDjango.RestFramework.Test/Support/Models.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using AspNetCore.RestFramework.Core.Base; +using NDjango.RestFramework.Base; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class Customer : BaseModel { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/Serializers.cs b/tests/NDjango.RestFramework.Test/Support/Serializers.cs similarity index 67% rename from tests/AspNetCore.RestFramework.Core.Test/Support/Serializers.cs rename to tests/NDjango.RestFramework.Test/Support/Serializers.cs index d83304c..991fecd 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/Serializers.cs +++ b/tests/NDjango.RestFramework.Test/Support/Serializers.cs @@ -1,7 +1,7 @@ using System; -using AspNetCore.RestFramework.Core.Serializer; +using NDjango.RestFramework.Serializer; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class CustomerSerializer : Serializer { diff --git a/tests/AspNetCore.RestFramework.Core.Test/Support/Validators.cs b/tests/NDjango.RestFramework.Test/Support/Validators.cs similarity index 93% rename from tests/AspNetCore.RestFramework.Core.Test/Support/Validators.cs rename to tests/NDjango.RestFramework.Test/Support/Validators.cs index 4d10387..e20fcb5 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/Support/Validators.cs +++ b/tests/NDjango.RestFramework.Test/Support/Validators.cs @@ -1,7 +1,7 @@ using FluentValidation; using Microsoft.AspNetCore.Http; -namespace AspNetCore.RestFramework.Core.Test.Support; +namespace NDjango.RestFramework.Test.Support; public class CustomerDocumentDtoValidator : AbstractValidator { diff --git a/tests/AspNetCore.RestFramework.Core.Test/packages.lock.json b/tests/NDjango.RestFramework.Test/packages.lock.json similarity index 99% rename from tests/AspNetCore.RestFramework.Core.Test/packages.lock.json rename to tests/NDjango.RestFramework.Test/packages.lock.json index cbf476a..b52da18 100644 --- a/tests/AspNetCore.RestFramework.Core.Test/packages.lock.json +++ b/tests/NDjango.RestFramework.Test/packages.lock.json @@ -1053,7 +1053,7 @@ "xunit.extensibility.core": "[2.9.0]" } }, - "AspNetCore.RestFramework": { + "NDjango.RestFramework": { "type": "Project", "dependencies": { "Microsoft.AspNetCore.Http.Abstractions": "[2.*, )",