Skip to content

Commit

Permalink
Minor Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stphnwlsh committed Feb 19, 2023
1 parent 6ebfddc commit 84c103f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Infrastructure/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static IServiceCollection AddInfrastructure(this IServiceCollection servi
_ = services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());

_ = services.AddSingleton<EntityFrameworkMovieReviewsRepository>();

_ = services.AddSingleton<IAuthorsRepository>(p => p.GetRequiredService<EntityFrameworkMovieReviewsRepository>());
_ = services.AddSingleton<IMoviesRepository>(x => x.GetRequiredService<EntityFrameworkMovieReviewsRepository>());
_ = services.AddSingleton<IReviewsRepository>(x => x.GetRequiredService<EntityFrameworkMovieReviewsRepository>());
Expand Down

0 comments on commit 84c103f

Please sign in to comment.