Skip to content

Commit

Permalink
adjusted namespaces for infrastructure files in features project
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidEggenberger committed Feb 26, 2024
1 parent 4d1c9d6 commit 9d9af8a
Show file tree
Hide file tree
Showing 64 changed files with 174 additions and 174 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Modules.TenantIdentity.IntegrationEvents;
using Shared.Features.CQRS.IntegrationEvent;
using Stripe;

namespace Modules.Subscriptions.DomainFeatures.StripeCustomerAggregate.Application.IntegrationEvents
namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.Application.IntegrationEvents
{
public class TenantAdminCreatedIntegrationEventHandler : IIntegrationEventHandler<TenantAdminCreatedIntegrationEvent>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscriptions.DomainFeatures.Agregates.StripeCustomerAggregate;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeCustomerAggregate;
using Shared.Features.CQRS.Query;

namespace Modules.Subscriptions.DomainFeatures.StripeCustomerAggregate.Application.Queries
namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.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.DomainFeatures.Agregates.StripeCustomerAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeCustomerAggregate
{
public class StripeCustomer : Entity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscription.DomainFeatures.Infrastructure.Configuration;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscriptions.DomainFeatures.Agregates.StripeSubscriptionAggregate;
using Modules.Subscription.Features.Infrastructure.Configuration;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeSubscriptionAggregate;
using Modules.Subscriptions.IntegrationEvents;
using Shared.Features.CQRS.Command;
using Shared.Features.CQRS.IntegrationEvent;
using Stripe;

namespace Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
{
public class CreateTrialingSubscriptionForTenant : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Features.CQRS.Command;

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

namespace Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
{
[AuthorizeTenantAdmin]
public class GetSubscriptionForTenant : IQuery<object>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Features.CQRS.Command;

namespace Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands
{
public class UpdateSubscriptionPeriodEnd : ICommand
{
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.Subscriptions.DomainFeatures.Agregates.StripeSubscriptionAggregate;
using Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeSubscriptionAggregate;

namespace Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Infrastructure
namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.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.DomainFeatures.Agregates.StripeCustomerAggregate;
using Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeCustomerAggregate;
using Shared.Features.Domain;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscriptions.DomainFeatures.Agregates.StripeSubscriptionAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeSubscriptionAggregate
{
public class StripeSubscription : AggregateRoot
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Modules.Subscriptions.DomainFeatures.Agregates.StripeSubscriptionAggregate
namespace Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeSubscriptionAggregate
{
public enum StripeSubscriptionStatus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Extensions.Options;
using Stripe;

namespace Modules.Subscription.DomainFeatures.Infrastructure.Configuration
namespace Modules.Subscription.Features.Infrastructure.Configuration
{
public static class Registrator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments;
using Modules.Subscriptions.Features.Infrastructure.StripePayments;
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscription.DomainFeatures.Infrastructure.Configuration
namespace Modules.Subscription.Features.Infrastructure.Configuration
{
public class SubscriptionsConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Options;

namespace Modules.Subscription.DomainFeatures.Infrastructure.Configuration
namespace Modules.Subscription.Features.Infrastructure.Configuration
{
public class SubscriptionsConfigurationValidator : IValidateOptions<SubscriptionsConfiguration>
{
Expand Down

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 @@ -2,7 +2,7 @@

#nullable disable

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.EFCore.Migrations
namespace Modules.Subscriptions.Features.Infrastructure.EFCore.Migrations
{
/// <inheritdoc />
public partial class initial : Migration

Check warning on line 8 in Source/Modules/Subscriptions/Features/Infrastructure/EFCore/Migrations/20240218050150_initial.cs

View workflow job for this annotation

GitHub Actions / build

The type name 'initial' only contains lower-cased ascii characters. Such names may become reserved for the language.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscription.Features.Infrastructure.EFCore;

#nullable disable

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.EFCore.Migrations
namespace Modules.Subscriptions.Features.Infrastructure.EFCore.Migrations
{
[DbContext(typeof(SubscriptionsDbContext))]
partial class SubscriptionsDbContextModelSnapshot : ModelSnapshot
Expand All @@ -23,7 +23,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)

SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);

modelBuilder.Entity("Modules.Subscriptions.DomainFeatures.Agregates.StripeCustomerAggregate.StripeCustomer", b =>
modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeCustomerAggregate.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.DomainFeatures.Agregates.StripeSubscriptionAggregate.StripeSubscription", b =>
modelBuilder.Entity("Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeSubscriptionAggregate.StripeSubscription", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
Expand Down Expand Up @@ -94,9 +94,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("StripeSubscriptions", "Subscriptions");
});

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

namespace Modules.Subscription.DomainFeatures.Infrastructure.EFCore
namespace Modules.Subscription.Features.Infrastructure.EFCore
{
public class SubscriptionsDbContext : BaseDbContext<SubscriptionsDbContext>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Shared.Features.CQRS.Command;
using Stripe.BillingPortal;

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments
namespace Modules.Subscriptions.Features.Infrastructure.StripePayments
{
public class CreateStripeBillingPortalSession : ICommand<Stripe.BillingPortal.Session>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.EntityFrameworkCore;
using Modules.Subscription.DomainFeatures.Infrastructure.Configuration;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscription.Features.Infrastructure.Configuration;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Shared.Features.CQRS.Command;
using Shared.Kernel.BuildingBlocks.Auth;
using Stripe.Checkout;

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments
namespace Modules.Subscriptions.Features.Infrastructure.StripePayments
{
public class CreateStripeCheckoutSession : ICommand<Stripe.Checkout.Session>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments
namespace Modules.Subscriptions.Features.Infrastructure.StripePayments
{
public class StripeOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments
namespace Modules.Subscriptions.Features.Infrastructure.StripePayments
{
public class StripeSubscriptionPlan
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Shared.Kernel.BuildingBlocks.Auth;

namespace Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments
namespace Modules.Subscriptions.Features.Infrastructure.StripePayments
{
public class StripeSubscriptionType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Shared.Kernel.BuildingBlocks.Auth;
using Shared.Kernel.BuildingBlocks.Auth.Attributes;
using Modules.Subscriptions.DomainFeatures.Infrastructure.StripePayments;
using Modules.Subscriptions.Features.Infrastructure.StripePayments;
using Shared.Features.Server;

namespace Modules.Subscription.Server.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Application.Commands;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands;
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.DomainFeatures.Agregates.StripeCustomerAggregate;
using Modules.Subscriptions.Features.DomainFeatures.Agregates.StripeCustomerAggregate;
using Shared.Features.Server;
using Modules.Subscriptions.DomainFeatures.StripeCustomerAggregate.Application.Queries;
using Modules.Subscriptions.Features.DomainFeatures.StripeCustomerAggregate.Application.Queries;

namespace Modules.Subscription.Server.Controllers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Modules.Subscription.DomainFeatures.Infrastructure.Configuration;
using Modules.Subscription.DomainFeatures.Infrastructure.EFCore;
using Modules.Subscription.Features.Infrastructure.Configuration;
using Modules.Subscription.Features.Infrastructure.EFCore;
using Shared.Features.EFCore;
using Shared.Features.Modules;
using System.Reflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Microsoft.AspNetCore.Mvc;
using Stripe;
using Shared.Features.Server;
using Modules.Subscription.DomainFeatures.Infrastructure.Configuration;
using Modules.Subscriptions.DomainFeatures.StripeSubscriptionAggregate.Application.Commands;
using Modules.Subscription.Features.Infrastructure.Configuration;
using Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptionAggregate.Application.Commands;

namespace Modules.Subscription.Server.WebHooks
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Modules.TenantIdentity.DomainFeatures.Infrastructure.EFCore;
using Modules.TenantIdentity.Features.Infrastructure.EFCore;
using Shared.Features.CQRS.Command;
using Shared.Kernel.BuildingBlocks.Auth;
using System.Threading;

namespace Modules.TenantIdentity.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.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.DomainFeatures.TenantAggregate.Domain;
using Modules.TenantIdentity.DomainFeatures.Infrastructure.EFCore;
using Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Domain;
using Modules.TenantIdentity.Features.Infrastructure.EFCore;
using Modules.TenantIdentity.Web.Shared.DTOs.Tenant;
using Shared.Features.CQRS.Command;
using System.Threading;

namespace Modules.TenantIdentity.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
{
public class CreateTenantWithAdmin : ICommand<TenantDTO>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.EntityFrameworkCore;
using Modules.TenantIdentity.DomainFeatures.Infrastructure.EFCore;
using Modules.TenantIdentity.Features.Infrastructure.EFCore;
using Shared.Features.CQRS.Command;
using Shared.Features.Domain.Exceptions;
using System.Threading;

namespace Modules.TenantIdentity.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
{
public class DeleteTenant : ICommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Modules.TenantIdentity.DomainFeatures.Infrastructure.EFCore;
using Modules.TenantIdentity.Features.Infrastructure.EFCore;
using Shared.Features.CQRS.Command;
using Shared.Kernel.BuildingBlocks;
using System.Threading;

namespace Modules.TenantIdentity.DomainFeatures.TenantAggregate.Application.Commands
namespace Modules.TenantIdentity.Features.DomainFeatures.TenantAggregate.Application.Commands
{
public class RemoveUserFromTenant : ICommand
{
Expand Down
Loading

0 comments on commit 9d9af8a

Please sign in to comment.