Skip to content

Commit

Permalink
Added service extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed May 13, 2020
1 parent 51047dd commit 5eadccf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions DVSA.MOT.SDK/AddDvlaMotSdk.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using DVSA.MOT.SDK.Interfaces;
using DVSA.MOT.SDK.Services;
using Microsoft.Extensions.DependencyInjection;

namespace DVSA.MOT.SDK
{
public static class IServiceCollectionExtension
{
public static IServiceCollection AddDvlaMotSdk(this IServiceCollection services)
{
services.AddScoped<ISingleVehicleService, SingleVehicleService>();
services.AddScoped<IAllVehiclesService, AllVehiclesService>();
services.AddScoped<IProcessApiResponse, ProcessApiResponse>();
return services;
}
}
}

0 comments on commit 5eadccf

Please sign in to comment.