|
|
|
@ -15,6 +15,7 @@ internal static class Register |
|
|
|
|
services.AddScoped<AgenceService>(); |
|
|
|
|
services.AddScoped<BusinessUnitService>(); |
|
|
|
|
services.AddScoped<FonctionService>(); |
|
|
|
|
services.AddScoped<PeriodeEssaiService>(); |
|
|
|
|
|
|
|
|
|
if (contextOptions.LoadFake) |
|
|
|
|
{ |
|
|
|
@ -22,6 +23,7 @@ internal static class Register |
|
|
|
|
services.AddSingleton<IAgenceRepository, FakeAgenceRepository>(); |
|
|
|
|
services.AddSingleton<IBusinessUnitRepository, FakeBusinessUnitRepository>(); |
|
|
|
|
services.AddSingleton<IFonctionRepository, FakeFonctionRepository>(); |
|
|
|
|
services.AddSingleton<IPeriodeEssaiRepository, FakePeriodeEssaiRepository>(); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
@ -30,6 +32,7 @@ internal static class Register |
|
|
|
|
services.AddScoped<IAgenceRepository, AgenceSqlRepository>(); |
|
|
|
|
services.AddScoped<IBusinessUnitRepository, BusinessUnitSqlRepository>(); |
|
|
|
|
services.AddScoped<IFonctionRepository, FonctionSqlRepository>(); |
|
|
|
|
services.AddScoped<IPeriodeEssaiRepository, PeriodeEssaiSqlRepository>(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |