Skip to content

Commit

Permalink
*fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Jun 18, 2020
1 parent 278fef6 commit 57d47b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
10 changes: 5 additions & 5 deletions Application/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

namespace Application
{
public static class DependencyInjection
{
public static void AddApplication(this IServiceCollection services)
public static class DependencyInjection
{
services.AddMediatR(Assembly.GetExecutingAssembly());
public static void AddApplication(this IServiceCollection services)
{
services.AddMediatR(Assembly.GetExecutingAssembly());
}
}
}
}

10 changes: 5 additions & 5 deletions Application/Interfaces/IApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

namespace Application.Interfaces
{
public interface IApplicationDbContext
{
DbSet<Product> Products { get; set; }
Task<int> SaveChanges();
}
public interface IApplicationDbContext
{
DbSet<Product> Products { get; set; }
Task<int> SaveChanges();
}
}
1 change: 0 additions & 1 deletion Persistence/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace Persistence
{
public static class DependencyInjection
{
//Check
public static void AddPersistence(this IServiceCollection services, IConfiguration configuration)
{
services.AddDbContext<ApplicationDbContext>(options =>
Expand Down
6 changes: 0 additions & 6 deletions WebApi/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Application;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
using Persistence;

Expand Down

0 comments on commit 57d47b8

Please sign in to comment.