Skip to content

Commit

Permalink
style: clean up namespace imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kosalaperera committed Mar 14, 2022
1 parent 71ddf98 commit 7750dd9
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 29 deletions.
2 changes: 0 additions & 2 deletions Application/Cocktails/Commands/CocktailDiscontinued.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Collections.Generic;
using Skol.Domain;
using Skol.Domain.Models;
using MediatR;

namespace Skol.Application.Cocktails.Commands
{
Expand Down
2 changes: 0 additions & 2 deletions Application/Cocktails/Commands/CocktailRebranded.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Collections.Generic;
using Skol.Domain;
using Skol.Domain.Models;
using MediatR;

namespace Skol.Application.Cocktails.Commands
{
Expand Down
1 change: 0 additions & 1 deletion Application/Cocktails/Commands/DiscontinueCocktail.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Skol.Domain.Models;
using MediatR;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
1 change: 0 additions & 1 deletion Application/Cocktails/Commands/RebrandCocktail.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Skol.Domain.Models;
using MediatR;

Expand Down
2 changes: 0 additions & 2 deletions Application/Cocktails/Commands/RebrandCocktailHandler.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Skol.Domain.Models;
using MediatR;
using System;
using Microsoft.EntityFrameworkCore;

namespace Skol.Application.Cocktails.Commands
Expand Down
7 changes: 2 additions & 5 deletions Application/DependencyExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
using System.Reflection;
using MediatR;
using Skol.Application.Cocktails.Commands;
using Skol.Application.Cocktails.Triggers;
using Skol.Domain.Models;

namespace Microsoft.Extensions.DependencyInjection
{
public static class DependencyExtensions
{
public static IServiceCollection AddApplication(this IServiceCollection services) =>
services.AddMediatR(Assembly.GetExecutingAssembly());
public static IServiceCollection AddApplication(this IServiceCollection services)
=> services.AddMediatR(Assembly.GetExecutingAssembly());
}
}
1 change: 0 additions & 1 deletion Application/Orders/Commands/CreateOrderHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
2 changes: 0 additions & 2 deletions Application/Orders/Commands/OrderReceived.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Collections.Generic;
using Skol.Domain;
using Skol.Domain.Models;
using MediatR;

namespace Skol.Application.Orders.Commands
{
Expand Down
1 change: 0 additions & 1 deletion Application/Orders/Queries/GetOrderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Threading.Tasks;
using MediatR;
using Microsoft.EntityFrameworkCore;
using Skol.Domain;
using Skol.Domain.Models;

namespace Skol.Application.Orders.Queries
Expand Down
8 changes: 0 additions & 8 deletions Infrastructure/ContextConfigurations.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Skol.Application;
using Skol.Domain;
using Skol.Domain.Models;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

namespace Skol.Infrastructure
{
Expand Down
1 change: 0 additions & 1 deletion Infrastructure/DependencyExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Skol.Application;
using Skol.Infrastructure;

Expand Down
2 changes: 0 additions & 2 deletions Infrastructure/SkolContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using Skol.Application;
using Skol.Domain;
using Skol.Domain.Models;
using System;
using System.Collections.Generic;

namespace Skol.Infrastructure
{
Expand Down

0 comments on commit 7750dd9

Please sign in to comment.