Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NuGet package. #21

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Api/src/2022-12-21/Controllers/MenusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Asp.Versioning;
using BuberDinner.Api._2022_12_21.Models.Menus;
using FunctionalDDD.Asp;
using FunctionalDDD.Results.Asp;
using Mapster;
using Mediator;
using Microsoft.AspNetCore.Mvc;
Expand Down
1 change: 0 additions & 1 deletion Api/src/2022-12-21/Models/Menus/CreateMenuRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using BuberDinner.Application.Menus.Commands;
using BuberDinner.Domain.Host.ValueObject;
using FunctionalDDD;
using DescriptionClass = Domain.Common.ValueObjects.Description;
using NameClass = Domain.Common.ValueObjects.Name;

Expand Down
2 changes: 1 addition & 1 deletion Api/src/Neutral/Controllers/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Asp.Versioning;
using BuberDinner.Api.Neutral.Models.Authentication;
using FunctionalDDD.Asp;
using FunctionalDDD.Results.Asp;
using Mapster;
using Mediator;
using Microsoft.AspNetCore.Authorization;
Expand Down
2 changes: 1 addition & 1 deletion Api/src/Neutral/Models/Authentication/RegisterRequest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace BuberDinner.Api.Neutral.Models.Authentication;

using BuberDinner.Application.Services.Authentication.Commands;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;
using FirstNameClass = Domain.User.ValueObjects.FirstName;
using LastNameClass = Domain.User.ValueObjects.LastName;
using PasswordClass = Domain.User.ValueObjects.Password;
Expand Down
2 changes: 1 addition & 1 deletion Api/src/SwaggerDefaultValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text.Json;

/// <summary>
/// Represents the OpenAPI/Swashbuckle operation filter used to document information provided, but not used.
/// Represents the OpenAPI/Swash-buckle operation filter used to document information provided, but not used.
/// </summary>
/// <remarks>This <see cref="IOperationFilter"/> is only required due to bugs in the <see cref="SwaggerGenerator"/>.
/// Once they are fixed and published, this class can be removed.</remarks>
Expand Down
2 changes: 1 addition & 1 deletion Api/tests/2022-12-21/CreateMenuRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using BuberDinner.Application.Menus.Commands;
using BuberDinner.Domain.Common.ValueObjects;
using BuberDinner.Domain.Host.ValueObject;
using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Results.Errors;

public class CreateMenuRequestTests
{
Expand Down
6 changes: 6 additions & 0 deletions Api/tests/BuberDinner.Api.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
<ItemGroup>
<ProjectReference Include="..\src\BuberDinner.Api.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Api/tests/Neutral/LoginRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using BuberDinner.Api.Neutral.Models.Authentication;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Results.Errors;

public class LoginRequestTests
{
Expand Down
4 changes: 2 additions & 2 deletions Api/tests/Neutral/RegisterRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

using BuberDinner.Api.Neutral.Models.Authentication;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Domain;
using FunctionalDDD.Results.Errors;

public class RegisterRequestTests
{
Expand Down
2 changes: 1 addition & 1 deletion Application/src/Authentication/Commands/RegisterCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using BuberDinner.Application.Services.Authentication.Common;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;
using Mediator;

public class RegisterCommand
Expand Down
4 changes: 2 additions & 2 deletions Application/src/Authentication/Queries/LoginQueryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal class LoginQueryHandler :
private readonly IJwtTokenGenerator _jwtTokenGenerator;
private readonly IRepository<User> _userRepository;

public LoginQueryHandler(IJwtTokenGenerator jwtTokenGenerator, IRepository<User> userRepository)
public LoginQueryHandler(IJwtTokenGenerator jWtTokenGenerator, IRepository<User> userRepository)
{
_jwtTokenGenerator = jwtTokenGenerator;
_jwtTokenGenerator = jWtTokenGenerator;
_userRepository = userRepository;
}

Expand Down
2 changes: 1 addition & 1 deletion Application/tests/Authentication/AuthenticationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Threading.Tasks;
using BuberDinner.Application.Services.Authentication.Commands;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;
using Mediator;

public class AuthenticationTests
Expand Down
8 changes: 8 additions & 0 deletions Application/tests/BuberDinner.Application.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@
</None>
</ItemGroup>


<ItemGroup>
<PackageReference Update="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName).Tests" />
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
<Using Include="FunctionalDDD.RailwayOrientedProgramming" />
<Using Include="FunctionalDDD.Results" />
</ItemGroup>

<!-- Test projects. -->
Expand Down
26 changes: 13 additions & 13 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="7.0.1" />
<PackageVersion Include="Azure.Identity" Version="1.10.1" />
<PackageVersion Include="FluentValidation" Version="11.3.0" />
<PackageVersion Include="FunctionalDDD.Asp" Version="1.1.0-alpha.13" />
<PackageVersion Include="FunctionalDDD.CommonValueObjectGenerator" Version="1.1.0-alpha.13" />
<PackageVersion Include="FunctionalDDD.CommonValueObjects" Version="1.1.0-alpha.13" />
<PackageVersion Include="FunctionalDDD.DomainDrivenDesign" Version="1.1.0-alpha.13" />
<PackageVersion Include="FunctionalDDD.FluentValidation" Version="1.1.0-alpha.13" />
<PackageVersion Include="FunctionalDDD.Asp" Version="1.1.0-alpha.18" />
<PackageVersion Include="FunctionalDDD.CommonValueObjectGenerator" Version="1.1.0-alpha.18" />
<PackageVersion Include="FunctionalDDD.CommonValueObjects" Version="1.1.0-alpha.18" />
<PackageVersion Include="FunctionalDDD.DomainDrivenDesign" Version="1.1.0-alpha.18" />
<PackageVersion Include="FunctionalDDD.FluentValidation" Version="1.1.0-alpha.18" />
<PackageVersion Include="FunctionalDDD.RailwayOrientedProgramming" Version="$(FunctionalDDDVersion)" />
<PackageVersion Include="Mapster" Version="7.3.0" />
<PackageVersion Include="Mapster.DependencyInjection" Version="1.0.0" />
<PackageVersion Include="Mediator.Abstractions" Version="2.1.6" />
<PackageVersion Include="Mediator.SourceGenerator" Version="2.1.6" />
<PackageVersion Include="Mapster" Version="7.4.0" />
<PackageVersion Include="Mapster.DependencyInjection" Version="1.0.1" />
<PackageVersion Include="Mediator.Abstractions" Version="2.1.7" />
<PackageVersion Include="Mediator.SourceGenerator" Version="2.1.7" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.11" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.11" />
Expand All @@ -27,17 +27,17 @@
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.6.133" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="7.0.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="7.0.1" />
</ItemGroup>
<!-- Test -->
<ItemGroup>
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageVersion Include="xunit" Version="2.5.0" />
<PackageVersion Include="Xunit.DependencyInjection" Version="8.8.2" />
<PackageVersion Include="xunit" Version="2.5.1" />
<PackageVersion Include="Xunit.DependencyInjection" Version="8.9.0" />
<PackageVersion Include="Xunit.Priority" Version="1.1.6" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.1" />
<PackageVersion Include="xunit.categories" Version="2.0.8" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Domain/src/Common/Errors/Errors.Authentication.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Errors;

using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Results.Errors;

public partial class Errors
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Common/Errors/Errors.User.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Errors;

using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Results.Errors;

public partial class Errors
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Common/ValueObjects/Description.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Common.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class Description : RequiredString<Description>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Common/ValueObjects/Name.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Common.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class Name : RequiredString<Name>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Dinner/ValueObjects/DinnerId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Dinner.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class DinnerId : RequiredGuid<DinnerId>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Host/ValueObjects/HostId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Host.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class HostId : RequiredGuid<HostId>
{
Expand Down
3 changes: 1 addition & 2 deletions Domain/src/Menu/Entities/MenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
using BuberDinner.Domain.Common.ValueObjects;
using BuberDinner.Domain.Menu.ValueObject;
using FluentValidation;
using FunctionalDDD.DomainDrivenDesign;
using FunctionalDDD.FluentValidation;
using FunctionalDDD.Domain;

public class MenuItem : Entity<MenuItemId>
{
Expand Down
3 changes: 1 addition & 2 deletions Domain/src/Menu/Entities/MenuSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
using BuberDinner.Domain.Common.ValueObjects;
using BuberDinner.Domain.Menu.ValueObject;
using FluentValidation;
using FunctionalDDD.DomainDrivenDesign;
using FunctionalDDD.FluentValidation;
using FunctionalDDD.Domain;

public class MenuSection : Entity<MenuSectionId>
{
Expand Down
5 changes: 2 additions & 3 deletions Domain/src/Menu/Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
using BuberDinner.Domain.Menu.Entities;
using BuberDinner.Domain.Menu.ValueObject;
using FluentValidation;
using FunctionalDDD.DomainDrivenDesign;
using FunctionalDDD.FluentValidation;
using FunctionalDDD.Domain;

public class Menu : AggregateRoot<MenuId>
public class Menu : Aggregate<MenuId>
{
public Name Name { get; }
public Description Description { get; }
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Menu/ValueObjects/MenuId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class MenuId : RequiredGuid<MenuId>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Menu/ValueObjects/MenuItemId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class MenuItemId : RequiredGuid<MenuItemId>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/Menu/ValueObjects/MenuSectionId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class MenuSectionId : RequiredGuid<MenuSectionId>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/MenuReview/ValueObjects/MenuId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class MenuReviewId : RequiredGuid<MenuReviewId>
{
Expand Down
4 changes: 1 addition & 3 deletions Domain/src/User/Entities/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

using BuberDinner.Domain.User.ValueObjects;
using FluentValidation;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.DomainDrivenDesign;
using FunctionalDDD.FluentValidation;
using FunctionalDDD.Domain;

public class User : Entity<UserId>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/User/ValueObjects/FirstName.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class FirstName : RequiredString<FirstName>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/User/ValueObjects/LastName.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class LastName : RequiredString<LastName>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/User/ValueObjects/Password.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class Password : RequiredString<Password>
{
Expand Down
2 changes: 1 addition & 1 deletion Domain/src/User/ValueObjects/UserId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public partial class UserId : RequiredString<UserId>
{
Expand Down
7 changes: 7 additions & 0 deletions Domain/tests/BuberDinner.Domain.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
<ProjectReference Include="..\src\BuberDinner.Domain.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Domain/tests/MenuTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using BuberDinner.Domain.Menu;
using BuberDinner.Domain.Menu.Entities;
using BuberDinner.Domain.Menu.ValueObject;
using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Results.Errors;

public class MenuTests
{
Expand Down
4 changes: 2 additions & 2 deletions Domain/tests/UserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

using BuberDinner.Domain.User.Entities;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.RailwayOrientedProgramming.Errors;
using FunctionalDDD.Domain;
using FunctionalDDD.Results.Errors;
#pragma warning disable IDE0007 // Use var keyword

public class UserTests
Expand Down
6 changes: 4 additions & 2 deletions Infrastructure/src/Persistence/Dto/UserDto.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
namespace BuberDinner.Infrastructure.Persistence.Dto;
// Ignore Spelling: Dto

namespace BuberDinner.Infrastructure.Persistence.Dto;

using BuberDinner.Domain.User.Entities;
using BuberDinner.Domain.User.ValueObjects;
using FunctionalDDD.CommonValueObjects;
using FunctionalDDD.Domain;

public class UserDto
{
Expand Down
6 changes: 6 additions & 0 deletions Infrastructure/tests/BuberDinner.Infrastructure.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
<ItemGroup>
<ProjectReference Include="..\src\BuberDinner.Infrastructure.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Loading