Skip to content

Commit

Permalink
chore: fix namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Oct 23, 2023
1 parent aa2c733 commit ac2af73
Show file tree
Hide file tree
Showing 994 changed files with 2,407 additions and 2,414 deletions.
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Configuration/DevicesConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Backbone.Modules.Devices.Application;
using Backbone.Devices.Application;

namespace Backbone.AdminUi.Configuration;

Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Configuration/QuotasConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Backbone.Modules.Quotas.Application;
using Backbone.Quotas.Application;

namespace Backbone.AdminUi.Configuration;

Expand Down
12 changes: 6 additions & 6 deletions AdminUi/src/AdminUi/Controllers/ClientsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.Modules.Devices.Application.Clients.Commands.ChangeClientSecret;
using Backbone.Modules.Devices.Application.Clients.Commands.CreateClient;
using Backbone.Modules.Devices.Application.Clients.Commands.DeleteClient;
using Backbone.Modules.Devices.Application.Clients.Commands.UpdateClient;
using Backbone.Modules.Devices.Application.Clients.DTOs;
using Backbone.Modules.Devices.Application.Clients.Queries.GetClient;
using Backbone.Devices.Application.Clients.Commands.ChangeClientSecret;
using Backbone.Devices.Application.Clients.Commands.CreateClient;
using Backbone.Devices.Application.Clients.Commands.DeleteClient;
using Backbone.Devices.Application.Clients.Commands.UpdateClient;
using Backbone.Devices.Application.Clients.DTOs;
using Backbone.Devices.Application.Clients.Queries.GetClient;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
30 changes: 12 additions & 18 deletions AdminUi/src/AdminUi/Controllers/IdentitiesController.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Backbone.BuildingBlocks.API;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.BuildingBlocks.Application.Abstractions.Exceptions;
using Backbone.BuildingBlocks.Application.Extensions;
using Backbone.BuildingBlocks.Application.Pagination;
using Backbone.Modules.Devices.Application;
using Backbone.Modules.Devices.Application.Devices.DTOs;
using Backbone.Modules.Devices.Application.Identities.Commands.UpdateIdentity;
using Backbone.Modules.Quotas.Application.DTOs;
using Backbone.Modules.Quotas.Application.Identities.Commands.CreateQuotaForIdentity;
using Backbone.Modules.Quotas.Application.Identities.Commands.DeleteQuotaForIdentity;
using Backbone.Modules.Quotas.Domain.Aggregates.Identities;
using Backbone.Devices.Application;
using Backbone.Devices.Application.Devices.DTOs;
using Backbone.Devices.Application.Identities.Commands.UpdateIdentity;
using Backbone.Quotas.Application.DTOs;
using Backbone.Quotas.Application.Identities.Commands.CreateQuotaForIdentity;
using Backbone.Quotas.Application.Identities.Commands.DeleteQuotaForIdentity;
using Backbone.Quotas.Domain.Aggregates.Identities;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using ApplicationException = Backbone.BuildingBlocks.Application.Abstractions.Exceptions.ApplicationException;
using GetIdentityQueryDevices = Backbone.Modules.Devices.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityQueryQuotas = Backbone.Modules.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityResponseDevices = Backbone.Modules.Devices.Application.Identities.Queries.GetIdentity.GetIdentityResponse;
using GetIdentityResponseQuotas = Backbone.Modules.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityResponse;
using GetIdentityQueryDevices = Backbone.Devices.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityQueryQuotas = Backbone.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityResponseDevices = Backbone.Devices.Application.Identities.Queries.GetIdentity.GetIdentityResponse;
using GetIdentityResponseQuotas = Backbone.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityResponse;

namespace Backbone.AdminUi.Controllers;

Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Controllers/LogsController.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.BuildingBlocks.Application.Abstractions.Exceptions;
using Backbone.Modules.Devices.Application;
using Backbone.Devices.Application;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Controllers/MetricsController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.Modules.Quotas.Application.Metrics.Queries.ListMetrics;
using Backbone.Quotas.Application.Metrics.Queries.ListMetrics;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
20 changes: 8 additions & 12 deletions AdminUi/src/AdminUi/Controllers/TiersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.BuildingBlocks.Application.Abstractions.Exceptions;
using Backbone.BuildingBlocks.Application.Extensions;
using Backbone.BuildingBlocks.Application.Pagination;
using Backbone.Modules.Devices.Application;
using Backbone.Modules.Devices.Application.Tiers.Commands.CreateTier;
using Backbone.Modules.Devices.Application.Tiers.Commands.DeleteTier;
using Backbone.Modules.Quotas.Application.DTOs;
using Backbone.Modules.Quotas.Application.Tiers.Commands.CreateQuotaForTier;
using Backbone.Modules.Quotas.Application.Tiers.Commands.DeleteTierQuotaDefinition;
using Backbone.Modules.Quotas.Application.Tiers.Queries.GetTierById;
using Backbone.Modules.Quotas.Domain.Aggregates.Identities;
using Backbone.Devices.Application;
using Backbone.Devices.Application.Tiers.Commands.CreateTier;
using Backbone.Devices.Application.Tiers.Commands.DeleteTier;
using Backbone.Quotas.Application.DTOs;
using Backbone.Quotas.Application.Tiers.Commands.CreateQuotaForTier;
using Backbone.Quotas.Application.Tiers.Commands.DeleteTierQuotaDefinition;
using Backbone.Quotas.Application.Tiers.Queries.GetTierById;
using Backbone.Quotas.Domain.Aggregates.Identities;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using ApplicationException = Backbone.BuildingBlocks.Application.Abstractions.Exceptions.ApplicationException;

namespace Backbone.AdminUi.Controllers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Backbone.AdminUi.Configuration;
using Backbone.Crypto.Abstractions;
using Backbone.Crypto.Implementations;
using Backbone.Modules.Devices.Application.Extensions;
using Backbone.Modules.Devices.Infrastructure.Persistence;
using Backbone.Devices.Application.Extensions;
using Backbone.Devices.Infrastructure.Persistence;

namespace Backbone.AdminUi.Extensions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc.ExceptionFilters;
using Backbone.Modules.Devices.Application.Devices.Commands.RegisterDevice;
using Backbone.Modules.Devices.Application.Devices.DTOs;
using Backbone.Devices.Application.Devices.Commands.RegisterDevice;
using Backbone.Devices.Application.Devices.DTOs;
using FluentValidation;
using FluentValidation.AspNetCore;
using Microsoft.AspNetCore.Mvc;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Backbone.AdminUi.Configuration;
using Backbone.Modules.Quotas.Application.Extensions;
using Backbone.Modules.Quotas.Infrastructure.Persistence.Database;
using Backbone.Quotas.Application.Extensions;
using Backbone.Quotas.Infrastructure.Persistence.Database;

namespace Backbone.AdminUi.Extensions;

Expand Down
9 changes: 4 additions & 5 deletions AdminUi/src/AdminUi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
using Backbone.BuildingBlocks.API.Extensions;
using Backbone.BuildingBlocks.Application.QuotaCheck;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database;
using Backbone.Modules.Devices.Application;
using Backbone.Modules.Devices.Infrastructure.OpenIddict;
using Backbone.Modules.Devices.Infrastructure.Persistence.Database;
using Backbone.Devices.Application;
using Backbone.Devices.Infrastructure.OpenIddict;
using Backbone.Devices.Infrastructure.Persistence.Database;
using Backbone.Tooling.Extensions;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCore.OData;
using Microsoft.Extensions.Options;
using Serilog;
using Serilog.Exceptions;
using Serilog.Exceptions.Core;
using Serilog.Exceptions.EntityFrameworkCore.Destructurers;
using Serilog.Settings.Configuration;
using LogHelper = Backbone.Infrastructure.Logging.LogHelper;
using LogHelper = Backbone.Backbone.Infrastructure.Logging.LogHelper;

Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
Expand Down
1 change: 0 additions & 1 deletion AdminUi/test/AdminUi.Tests.Integration/API/BaseApi.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Net;
using System.Net.Http.Headers;
using AdminUi.Tests.Integration.Models;
using Backbone.AdminUi.Tests.Integration.Configuration;
using Backbone.AdminUi.Tests.Integration.Models;
using FluentValidation.TestHelper;
Expand Down
3 changes: 1 addition & 2 deletions AdminUi/test/AdminUi.Tests.Integration/API/IdentitiesApi.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using AdminUi.Tests.Integration.Models;
using Backbone.AdminUi.Tests.Integration.Configuration;
using Backbone.AdminUi.Tests.Integration.Configuration;
using Backbone.AdminUi.Tests.Integration.Models;
using Microsoft.Extensions.Options;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AdminUi.Tests.Integration.Models;
using Backbone.AdminUi.Tests.Integration.Models;
using Backbone.AdminUi.Tests.Integration.Support;

namespace Backbone.AdminUi.Tests.Integration.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net;

namespace AdminUi.Tests.Integration.Models;
namespace Backbone.AdminUi.Tests.Integration.Models;

public class ODataResponse<T>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AdminUi.Tests.Integration.Models;
namespace Backbone.AdminUi.Tests.Integration.Models;

public class ODataResponseContent<T>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using AdminUi.Tests.Integration.Models;
using Backbone.AdminUi.Tests.Integration.API;
using Backbone.AdminUi.Tests.Integration.Extensions;
using Backbone.AdminUi.Tests.Integration.Models;
Expand Down
2 changes: 1 addition & 1 deletion Backbone.Infrastructure/Logging/LogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Serilog;
using Serilog.Events;

namespace Backbone.Infrastructure.Logging;
namespace Backbone.Backbone.Infrastructure.Logging;

public static class LogHelper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Backbone.Modules.Devices.Domain.Entities;
using Backbone.Devices.Domain.Entities;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Linq.Expressions;
using Backbone.Modules.Devices.Domain.Entities;
using Backbone.Modules.Devices.Infrastructure.Persistence.Database;
using Backbone.Devices.Domain.Entities;
using Backbone.Devices.Infrastructure.Persistence.Database;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Backbone.BuildingBlocks.API.AspNetCoreIdentityCustomizations;
using Backbone.Modules.Devices.Domain.Entities;
using Backbone.Modules.Devices.Infrastructure.Persistence.Database;
using Backbone.Devices.Domain.Entities;
using Backbone.Devices.Infrastructure.Persistence.Database;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc.ApplicationParts;
using Microsoft.Extensions.Configuration;
Expand Down
4 changes: 2 additions & 2 deletions ConsumerApi/Controllers/AuthorizationController.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Security.Claims;
using Backbone.BuildingBlocks.Application.Abstractions.Exceptions;
using Backbone.ConsumerApi.Mvc;
using Backbone.Modules.Devices.Application;
using Backbone.Modules.Devices.Domain.Entities;
using Backbone.Devices.Application;
using Backbone.Devices.Domain.Entities;
using Backbone.Tooling.Extensions;
using MediatR;
using Microsoft.AspNetCore;
Expand Down
10 changes: 5 additions & 5 deletions ConsumerApi/DevicesDbContextSeed.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Backbone.Modules.Devices.Application.Extensions;
using Backbone.Modules.Devices.Application.Tiers.Commands.CreateTier;
using Backbone.Modules.Devices.Application.Users.Commands.SeedTestUsers;
using Backbone.Modules.Devices.Domain.Aggregates.Tier;
using Backbone.Modules.Devices.Infrastructure.Persistence.Database;
using Backbone.Devices.Application.Extensions;
using Backbone.Devices.Application.Tiers.Commands.CreateTier;
using Backbone.Devices.Application.Users.Commands.SeedTestUsers;
using Backbone.Devices.Domain.Aggregates.Tier;
using Backbone.Devices.Infrastructure.Persistence.Database;
using MediatR;
using Microsoft.EntityFrameworkCore;

Expand Down
8 changes: 4 additions & 4 deletions ConsumerApi/Extensions/IServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using Backbone.BuildingBlocks.API.Mvc.ExceptionFilters;
using Backbone.BuildingBlocks.Application.Abstractions.Infrastructure.UserContext;
using Backbone.ConsumerApi.Configuration;
using Backbone.Modules.Devices.Application.Devices.Commands.RegisterDevice;
using Backbone.Modules.Devices.Infrastructure.OpenIddict;
using Backbone.Modules.Devices.Infrastructure.Persistence.Database;
using Backbone.Devices.Application.Devices.Commands.RegisterDevice;
using Backbone.Devices.Infrastructure.OpenIddict;
using Backbone.Devices.Infrastructure.Persistence.Database;
using Backbone.Tooling.Extensions;
using FluentValidation;
using FluentValidation.AspNetCore;
Expand All @@ -17,7 +17,7 @@
using Microsoft.OpenApi.Models;
using OpenIddict.Validation.AspNetCore;
using Serilog;
using PublicKey = Backbone.Modules.Devices.Application.Devices.DTOs.PublicKey;
using PublicKey = Backbone.Devices.Application.Devices.DTOs.PublicKey;

namespace Backbone.ConsumerApi.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Challenges.Domain.Ids;
using Backbone.Challenges.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Challenges;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Files.Domain.Entities;
using Backbone.Files.Domain.Entities;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Files;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Messages.Domain.Ids;
using Backbone.Messages.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Messages.Domain.Ids;
using Backbone.Messages.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Messages.Domain.Ids;
using Backbone.Messages.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Messages;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Relationships.Domain.Ids;
using Backbone.Relationships.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Relationships;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Relationships.Domain.Ids;
using Backbone.Relationships.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Relationships;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Relationships.Domain.Ids;
using Backbone.Relationships.Domain.Ids;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Relationships;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Synchronization.Domain.Entities;
using Backbone.Synchronization.Domain.Entities;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Synchronization;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Synchronization.Domain.Entities;
using Backbone.Synchronization.Domain.Entities;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Synchronization;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Backbone.BuildingBlocks.Domain;
using Backbone.Modules.Synchronization.Domain.Entities.Sync;
using Backbone.Synchronization.Domain.Entities.Sync;

namespace Backbone.ConsumerApi.Mvc.JsonConverters.Synchronization;

Expand Down
Loading

0 comments on commit ac2af73

Please sign in to comment.