Skip to content

Commit

Permalink
renaming aggregateRoot namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidEggenberger committed Oct 28, 2024
1 parent 7758dbe commit 921bce5
Show file tree
Hide file tree
Showing 48 changed files with 75 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Features.Messaging.IntegrationEvent;
using Stripe;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.Application.IntegrationEvents
namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.Application.IntegrationEvents
{
public class TenantAdminCreatedIntegrationEventHandler : IIntegrationEventHandler<TenantAdminCreatedIntegrationEvent>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Modules.Subscriptions.Features.Infrastructure.EFCore;
using Shared.Features.Messaging.Query;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.Application.Queries
namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.Application.Queries
{
public class GetStripeCustomerByStripePortalId : IQuery<StripeCustomer>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Features.Domain;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomers
{
public class StripeCustomer : Entity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Features.Server;
using Stripe;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands
{
public class CreateTrialingSubscription : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Messaging.Command;
using Shared.Features.Server;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands
{
public class PauseActiveSubscription : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Messaging.Command;
using Shared.Features.Server;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands
{
public class UpdateSubscriptionPeriod : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Shared.Features.Messaging.Query;
using Shared.Kernel.BuildingBlocks.Auth.Attributes;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Queries
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Queries
{
[AuthorizeTenantAdmin]
public class GetSubscriptionForTenant : IQuery<object>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Infrastructure
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Infrastructure
{
public class StripeSubscriptionEFConfiguration : IEntityTypeConfiguration<StripeSubscription>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomers;
using Shared.Features.Domain;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions
{
public class StripeSubscription : Entity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions
{
public enum StripeSubscriptionStatus
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)

SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);

modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.StripeCustomer", b =>
modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.StripeCustomer", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
Expand Down Expand Up @@ -53,7 +53,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("StripeCustomers", "Subscriptions");
});

modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.StripeSubscription", b =>
modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.StripeSubscription", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
Expand Down Expand Up @@ -97,9 +97,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("StripeSubscriptions", "Subscriptions");
});

modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.StripeSubscription", b =>
modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.StripeSubscription", b =>
{
b.HasOne("Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.StripeCustomer", "StripeCustomer")
b.HasOne("Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.StripeCustomer", "StripeCustomer")
.WithMany()
.HasForeignKey("StripeCustomerId")
.OnDelete(DeleteBehavior.Cascade)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomers;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions;
using Shared.Features.EFCore;

namespace Modules.Subscriptions.Features.Infrastructure.EFCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Queries;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Queries;
using Shared.Features.Server;
using Shared.Kernel.BuildingBlocks.Auth.Attributes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Microsoft.AspNetCore.Mvc;
using Shared.Kernel.BuildingBlocks.Auth;
using Stripe.Checkout;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomers;
using Shared.Features.Server;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.Application.Queries;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.Application.Queries;

namespace Modules.Subscriptions.Server.Controllers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Stripe;
using Shared.Features.Server;
using Modules.Subscriptions.Features.Infrastructure.Configuration;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands;

namespace Modules.Subscriptions.Server.WebHooks
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Kernel.BuildingBlocks.Auth;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands
{
public class AddUserToTenant : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain;
using Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain;
using Modules.TenantIdentity.Web.Shared.DTOs.Tenant;
using Shared.Features.Messaging.Command;
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands
{
public class CreateTenantWithAdmin : ICommand<TenantDTO>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Threading;
using Shared.Features.Server;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands
{
public class DeleteTenant : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands
{
public class RemoveUserFromTenant : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Shared.Kernel.BuildingBlocks.Auth;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands
{
public class UpdateTenantMembership : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.IntegrationEvents
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.IntegrationEvents
{
public class TenantSubscriptionUpdatedIntegrationEventHandler : ServerExecutionBase<TenantIdentityModule>, IIntegrationEventHandler<TenantSubscriptionPlanUpdatedIntegrationEvent>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Queries
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries
{
public class GetAllTenantMembershipsOfUser : IQuery<List<TenantMembershipDTO>>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Queries
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries
{
public class GetTenantByID : IQuery<TenantDTO>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Queries
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries
{
public class GetTenantDetailsByID : IQuery<TenantDetailDTO>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Modules.TenantIdentity.Web.Shared.DTOs.Tenant;
using Shared.Features.Server;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Queries
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries
{
public class GetTenantMembershipQuery : IQuery<TenantMembershipDTO>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain.Exceptions
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain.Exceptions
{
public class MemberNotFoundException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Features.Domain.Exceptions;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain.Exceptions
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain.Exceptions
{
public class TabsAlreadyClosedException : DomainException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain.Exceptions
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain.Exceptions
{
public class UserIsAlreadyMemberException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain.Exceptions;
using Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain.Exceptions;
using Modules.TenantIdentity.Web.Shared.DTOs.Tenant;
using Shared.Features.Domain;
using Shared.Features.Domain.Exceptions;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain
{
public class Tenant : Entity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Features.Domain;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain
{
public class TenantConfiguration : Entity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Shared.Features.Domain;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain
{
public class TenantInvitation : Entity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Domain;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain
{
public class TenantMembership : Entity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain;
using Modules.TenantIdentity.Features.DomainFeatures.Tenants.Domain;

namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Infrastructure
namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Infrastructure
{
public class TenantConfiguration : IEntityTypeConfiguration<Tenant>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Messaging.Command;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.UserAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Commands
{
public class CreateNewUser : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Shared.Features.Server;
using System.Threading;

namespace Modules.TenantIdentity.Features.DomainFeatures.UserAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Commands
{
public class SetSelectedTenantForUser : ICommand
{
Expand Down
Loading

0 comments on commit 921bce5

Please sign in to comment.