Skip to content

Commit

Permalink
move emailaddress valueobject and clean usings
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Sep 1, 2024
1 parent 86c6190 commit 7ef4d27
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CleanAspCore.Api.Tests/Fakers/EmployeeFaker.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Bogus;
using CleanAspCore.Common.ValueObjects;
using CleanAspCore.Data.Models.Employees;
using CleanAspCore.Domain;

namespace CleanAspCore.Api.Tests.Fakers;

Expand Down
1 change: 0 additions & 1 deletion CleanAspCore/AppConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using CleanAspCore.Data;
using CleanAspCore.Data.Extensions;
using CleanAspCore.Endpoints.Departments;
using CleanAspCore.Endpoints.Employees;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CleanAspCore.Domain;
namespace CleanAspCore.Common.ValueObjects;

public readonly record struct EmailAddress
{
Expand Down
3 changes: 2 additions & 1 deletion CleanAspCore/Data/Models/Employees/Employee.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CleanAspCore.Data.Models.Departments;
using CleanAspCore.Common.ValueObjects;
using CleanAspCore.Data.Models.Departments;
using CleanAspCore.Data.Models.Jobs;

namespace CleanAspCore.Data.Models.Employees;
Expand Down
3 changes: 2 additions & 1 deletion CleanAspCore/Data/Models/Employees/EmployeeConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using CleanAspCore.Common.ValueObjects;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CleanAspCore.Data.Models.Employees;
Expand Down
1 change: 1 addition & 0 deletions CleanAspCore/Endpoints/Employees/AddEmployee.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using CleanAspCore.Common.EntityShouldExistValidation;
using CleanAspCore.Common.NullableValidation;
using CleanAspCore.Common.ValueObjects;
using CleanAspCore.Data;
using CleanAspCore.Data.Models.Employees;
using Microsoft.AspNetCore.Http.HttpResults;
Expand Down
1 change: 0 additions & 1 deletion CleanAspCore/Endpoints/Employees/GetEmployees.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CleanAspCore.Common.Paging;
using CleanAspCore.Data;
using CleanAspCore.Data.Extensions;
using CleanAspCore.Data.Models.Employees;
using Microsoft.AspNetCore.Http.HttpResults;

Expand Down
1 change: 0 additions & 1 deletion CleanAspCore/Endpoints/Employees/UpdateEmployeeById.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using CleanAspCore.Common.NullableValidation;
using CleanAspCore.Common.SetProperty;
using CleanAspCore.Data;
using CleanAspCore.Data.Extensions;
using CleanAspCore.Data.Models.Employees;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.EntityFrameworkCore;
Expand Down
3 changes: 1 addition & 2 deletions CleanAspCore/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
global using CleanAspCore.Domain;
global using FluentValidation;
global using FluentValidation;
global using Microsoft.AspNetCore.Mvc;

0 comments on commit 7ef4d27

Please sign in to comment.