Skip to content

Commit

Permalink
Cleanup and Alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
stphnwlsh committed Jul 1, 2022
1 parent cb26eab commit 243c9c1
Show file tree
Hide file tree
Showing 23 changed files with 45 additions and 41 deletions.
4 changes: 4 additions & 0 deletions src/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
<Folder Include="Movies\Queries" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Application/Authors/Entities/Author.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace CleanMinimalApi.Application.Authors.Entities;

using CleanMinimalApi.Application.Common.Entities;
using CleanMinimalApi.Application.Reviews.Entities;
using Application.Common.Entities;
using Application.Reviews.Entities;

public record Author : Entity
{
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Movies/Entities/Movie.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace CleanMinimalApi.Application.Movies.Entities;

using CleanMinimalApi.Application.Common.Entities;
using CleanMinimalApi.Application.Reviews.Entities;
using Application.Common.Entities;
using Application.Reviews.Entities;

public record Movie : Entity
{
Expand Down
6 changes: 3 additions & 3 deletions src/Application/Reviews/Entities/Review.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace CleanMinimalApi.Application.Reviews.Entities;

using CleanMinimalApi.Application.Authors.Entities;
using CleanMinimalApi.Application.Common.Entities;
using CleanMinimalApi.Application.Movies.Entities;
using Application.Authors.Entities;
using Application.Common.Entities;
using Application.Movies.Entities;

public record Review : Entity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace CleanMinimalApi.Infrastructure.Databases.MoviesReviews.Mapping;
using Application = Application.Reviews.Entities;
using Infrastructure = Models;

public class ReviewMappingProfile : Profile
internal class ReviewMappingProfile : Profile
{
public ReviewMappingProfile()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ namespace CleanMinimalApi.Application.Tests.Unit.Authors.Queries.GetAuthorById;

using System.Threading;
using System.Threading.Tasks;
using Application.Authors;
using Application.Authors.Entities;
using CleanMinimalApi.Application.Authors;
using CleanMinimalApi.Application.Authors.Queries.GetAuthorById;
using CleanMinimalApi.Application.Common.Exceptions;
using Application.Authors.Queries.GetAuthorById;
using Application.Common.Exceptions;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanMinimalApi.Application.Tests.Unit.Authors.Queries.GetAuthorById;

using CleanMinimalApi.Application.Authors.Queries.GetAuthorById;
using Application.Authors.Queries.GetAuthorById;
using FluentValidation.TestHelper;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace CleanMinimalApi.Application.Tests.Unit.Authors.Queries.GetAuthors;

using System.Threading;
using System.Threading.Tasks;
using CleanMinimalApi.Application.Authors;
using CleanMinimalApi.Application.Authors.Entities;
using CleanMinimalApi.Application.Authors.Queries.GetAuthors;
using Application.Authors;
using Application.Authors.Entities;
using Application.Authors.Queries.GetAuthors;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ namespace CleanMinimalApi.Application.Tests.Unit.Common.Behaviours;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using CleanMinimalApi.Application.Authors.Entities;
using CleanMinimalApi.Application.Authors.Queries.GetAuthorById;
using CleanMinimalApi.Application.Common.Behaviours;
using Application.Authors.Entities;
using Application.Authors.Queries.GetAuthorById;
using Application.Common.Behaviours;
using FluentValidation;
using MediatR;
using NSubstitute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ namespace CleanMinimalApi.Application.Tests.Unit.Movies.Queries.GetMovieById;

using System.Threading;
using System.Threading.Tasks;
using Application.Common.Exceptions;
using Application.Movies;
using Application.Movies.Entities;
using CleanMinimalApi.Application.Common.Exceptions;
using CleanMinimalApi.Application.Movies;
using CleanMinimalApi.Application.Movies.Queries.GetMovieById;
using Application.Movies.Queries.GetMovieById;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanMinimalApi.Application.Tests.Unit.Movies.Queries.GetMovieById;

using CleanMinimalApi.Application.Reviews.Queries.GetReviewById;
using Application.Reviews.Queries.GetReviewById;
using FluentValidation.TestHelper;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace CleanMinimalApi.Application.Tests.Unit.Movies.Queries.GetMovies;

using System.Threading;
using System.Threading.Tasks;
using CleanMinimalApi.Application.Movies;
using CleanMinimalApi.Application.Movies.Entities;
using CleanMinimalApi.Application.Movies.Queries.GetMovies;
using Application.Movies;
using Application.Movies.Entities;
using Application.Movies.Queries.GetMovies;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Commands.CreateReview;
using System.Threading;
using System.Threading.Tasks;
using Application.Authors;
using Application.Common.Exceptions;
using Application.Movies;
using Application.Reviews;
using Application.Reviews.Commands.CreateReview;
using CleanMinimalApi.Application.Common.Exceptions;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Commands.DeleteReview;

using System.Threading;
using System.Threading.Tasks;
using Application.Common.Exceptions;
using Application.Reviews;
using CleanMinimalApi.Application.Common.Exceptions;
using CleanMinimalApi.Application.Reviews.Commands.DeleteReview;
using Application.Reviews.Commands.DeleteReview;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Commands.DeleteReview;

using CleanMinimalApi.Application.Reviews.Commands.DeleteReview;
using Application.Reviews.Commands.DeleteReview;
using FluentValidation.TestHelper;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Commands.UpdateReview;

using System.Threading;
using System.Threading.Tasks;
using Application.Common.Exceptions;
using Application.Reviews;
using CleanMinimalApi.Application.Common.Exceptions;
using CleanMinimalApi.Application.Reviews.Commands.UpdateReview;
using Application.Reviews.Commands.UpdateReview;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Commands.UpdateReview;

using CleanMinimalApi.Application.Reviews.Commands.UpdateReview;
using Application.Reviews.Commands.UpdateReview;
using FluentValidation.TestHelper;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Queries.GetReviewById;

using System.Threading;
using System.Threading.Tasks;
using Application.Common.Exceptions;
using Application.Reviews;
using Application.Reviews.Entities;
using CleanMinimalApi.Application.Common.Exceptions;
using CleanMinimalApi.Application.Reviews;
using CleanMinimalApi.Application.Reviews.Queries.GetReviewById;
using Application.Reviews.Queries.GetReviewById;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Queries.GetReviewById;

using CleanMinimalApi.Application.Reviews.Queries.GetReviewById;
using Application.Reviews.Queries.GetReviewById;
using FluentValidation.TestHelper;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ namespace CleanMinimalApi.Application.Tests.Unit.Reviews.Queries.GetReviews;
using System.Threading;
using System.Threading.Tasks;
using Application.Reviews;
using CleanMinimalApi.Application.Reviews.Entities;
using CleanMinimalApi.Application.Reviews.Queries.GetReviews;
using Application.Reviews.Entities;
using Application.Reviews.Queries.GetReviews;
using NSubstitute;
using Shouldly;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace CleanMinimalApi.Application.Tests.Unit.Version.Queries.GetVersion;

using System.Threading;
using System.Threading.Tasks;
using CleanMinimalApi.Application.Versions.Queries.GetVersion;
using Application.Versions.Queries.GetVersion;
using Shouldly;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace CleanMinimalApi.Infrastructure.Tests.Integration.Databases.MovieReviews.Extensions;

using System;
using CleanMinimalApi.Infrastructure.Databases.MoviesReviews.Models;
using Infrastructure.Databases.MoviesReviews;
using Infrastructure.Databases.MoviesReviews.Models;

internal static class MovieReviewsDbContextExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace CleanMinimalApi.Infrastructure.Tests.Integration.Databases.MovieReview

using System;
using AutoMapper;
using CleanMinimalApi.Infrastructure.Databases.MoviesReviews.Mapping;
using Extensions;
using Infrastructure.Databases.MoviesReviews;
using Infrastructure.Databases.MoviesReviews.Mapping;
using Microsoft.EntityFrameworkCore;
using SimpleDateTimeProvider;
using Xunit;
Expand Down

0 comments on commit 243c9c1

Please sign in to comment.