Skip to content

Commit

Permalink
Update to FunctionalDDD Version 1.1.0-alpha.13
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierjohn committed Sep 17, 2023
1 parent 6f26527 commit 07827aa
Show file tree
Hide file tree
Showing 32 changed files with 58 additions and 6 deletions.
1 change: 1 addition & 0 deletions Api/src/2022-12-21/Controllers/MenusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using Asp.Versioning;
using BuberDinner.Api._2022_12_21.Models.Menus;
using FunctionalDDD.Asp;
using Mapster;
using Mediator;
using Microsoft.AspNetCore.Mvc;
Expand Down
1 change: 1 addition & 0 deletions Api/src/Neutral/Controllers/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

using BuberDinner.Application.Services.Authentication.Commands;
using FunctionalDDD.CommonValueObjects;
using FirstNameClass = Domain.User.ValueObjects.FirstName;
using LastNameClass = Domain.User.ValueObjects.LastName;
using PasswordClass = Domain.User.ValueObjects.Password;
Expand Down
1 change: 1 addition & 0 deletions Api/tests/2022-12-21/CreateMenuRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using BuberDinner.Application.Menus.Commands;
using BuberDinner.Domain.Common.ValueObjects;
using BuberDinner.Domain.Host.ValueObject;
using FunctionalDDD.RailwayOrientedProgramming.Errors;

public class CreateMenuRequestTests
{
Expand Down
1 change: 1 addition & 0 deletions Api/tests/Neutral/LoginRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

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

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

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

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

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

public class AuthenticationTests
Expand Down
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" />
<Using Include="FunctionalDDD.RailwayOrientedProgramming" />
</ItemGroup>

<!-- Test projects. -->
Expand Down
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<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.4" />
<PackageVersion Include="FunctionalDDD.CommonValueObjectGenerator" Version="1.1.0-alpha.4" />
<PackageVersion Include="FunctionalDDD.CommonValueObjects" Version="1.1.0-alpha.4" />
<PackageVersion Include="FunctionalDDD.DomainDrivenDesign" Version="1.1.0-alpha.4" />
<PackageVersion Include="FunctionalDDD.FluentValidation" Version="1.1.0-alpha.4" />
<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.RailwayOrientedProgramming" Version="$(FunctionalDDDVersion)" />
<PackageVersion Include="Mapster" Version="7.3.0" />
<PackageVersion Include="Mapster.DependencyInjection" Version="1.0.0" />
Expand Down
2 changes: 2 additions & 0 deletions Domain/src/Common/Errors/Errors.Authentication.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Errors;

using FunctionalDDD.RailwayOrientedProgramming.Errors;

public partial class Errors
{
public static class Authentication
Expand Down
2 changes: 2 additions & 0 deletions Domain/src/Common/Errors/Errors.User.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Errors;

using FunctionalDDD.RailwayOrientedProgramming.Errors;

public partial class Errors
{
public static class User
Expand Down
2 changes: 2 additions & 0 deletions Domain/src/Common/ValueObjects/Description.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Common.ValueObjects;

using FunctionalDDD.CommonValueObjects;

public partial class Description : RequiredString<Description>
{
}
2 changes: 2 additions & 0 deletions Domain/src/Common/ValueObjects/Name.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Common.ValueObjects;

using FunctionalDDD.CommonValueObjects;

public partial class Name : RequiredString<Name>
{
}
2 changes: 2 additions & 0 deletions Domain/src/Dinner/ValueObjects/DinnerId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Dinner.ValueObject;

using FunctionalDDD.CommonValueObjects;

public partial class DinnerId : RequiredGuid<DinnerId>
{
}
2 changes: 2 additions & 0 deletions Domain/src/Host/ValueObjects/HostId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Host.ValueObject;

using FunctionalDDD.CommonValueObjects;

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

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

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

public class Menu : AggregateRoot<MenuId>
{
public Name Name { get; }
Expand Down
2 changes: 2 additions & 0 deletions Domain/src/Menu/ValueObjects/MenuId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;

public partial class MenuId : RequiredGuid<MenuId>
{
}
2 changes: 2 additions & 0 deletions Domain/src/Menu/ValueObjects/MenuItemId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;

public partial class MenuItemId : RequiredGuid<MenuItemId>
{
}
2 changes: 2 additions & 0 deletions Domain/src/Menu/ValueObjects/MenuSectionId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;

public partial class MenuSectionId : RequiredGuid<MenuSectionId>
{
}
2 changes: 2 additions & 0 deletions Domain/src/MenuReview/ValueObjects/MenuId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.Menu.ValueObject;

using FunctionalDDD.CommonValueObjects;

public partial class MenuReviewId : RequiredGuid<MenuReviewId>
{
}
3 changes: 3 additions & 0 deletions Domain/src/User/Entities/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

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

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

using FunctionalDDD.CommonValueObjects;

public partial class FirstName : RequiredString<FirstName>
{
}
2 changes: 2 additions & 0 deletions Domain/src/User/ValueObjects/LastName.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;

public partial class LastName : RequiredString<LastName>
{
}
2 changes: 2 additions & 0 deletions Domain/src/User/ValueObjects/Password.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;

public partial class Password : RequiredString<Password>
{
}
2 changes: 2 additions & 0 deletions Domain/src/User/ValueObjects/UserId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace BuberDinner.Domain.User.ValueObjects;

using FunctionalDDD.CommonValueObjects;

public partial class UserId : RequiredString<UserId>
{
}
1 change: 1 addition & 0 deletions Domain/tests/MenuTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using BuberDinner.Domain.Menu;
using BuberDinner.Domain.Menu.Entities;
using BuberDinner.Domain.Menu.ValueObject;
using FunctionalDDD.RailwayOrientedProgramming.Errors;

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

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

public class UserTests
Expand Down
1 change: 1 addition & 0 deletions Infrastructure/src/Persistence/Dto/UserDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

public class UserDto
{
Expand Down
1 change: 1 addition & 0 deletions Infrastructure/tests/UserRespositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using BuberDinner.Domain.User.Entities;
using BuberDinner.Domain.User.ValueObjects;
using BuberDinner.Infrastructure.Persistence.Cosmos;
using FunctionalDDD.CommonValueObjects;
using Xunit.Categories;

[Category("ComponentTests")]
Expand Down

0 comments on commit 07827aa

Please sign in to comment.