Skip to content

Commit

Permalink
Changed to use service extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed May 13, 2020
1 parent 268130f commit e30bcca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DVSA.TEST.WEB.API/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using DVSA.MOT.SDK.Interfaces;
using DVSA.MOT.SDK;
using DVSA.MOT.SDK.Interfaces;
using DVSA.MOT.SDK.Models;
using DVSA.MOT.SDK.Services;
using Microsoft.AspNetCore.Builder;
Expand All @@ -25,7 +26,7 @@ public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
services.Configure<ApiKey>(Configuration.GetSection("MotApi"));
services.AddTransient<ISingleVehicleService, SingleVehicleService>();
services.AddDvlaMotSdk();
services.AddOptions();
services.AddLogging();
}
Expand Down

0 comments on commit e30bcca

Please sign in to comment.