Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

BusinessConfigurationExtension.cs 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Diligent.WebAPI.Host.Extensions
  2. {
  3. [ExcludeFromCodeCoverage]
  4. public static class BusinessConfigurationExtension
  5. {
  6. /// <summary>
  7. /// Services configuration
  8. /// </summary>
  9. public static void ConfigureBusiness(this WebApplicationBuilder builder)
  10. {
  11. IServiceCollection services = builder.Services;
  12. services.AddAutoMapper(typeof(CompanyMappingProfile));
  13. services.AddAutoMapper(typeof(WebhookMappingProfile));
  14. services.AddAutoMapper(typeof(InsurerMappingProfile));
  15. services.AddAutoMapper(typeof(ApplicantMappingProfile));
  16. services.AddAutoMapper(typeof(CommentMappingProfile));
  17. services.AddAutoMapper(typeof(SelectionProcessMappingProfile));
  18. services.AddAutoMapper(typeof(SelectionLevelMappingProfile));
  19. services.AddScoped<IInsurersService, InsurersService>();
  20. services.AddScoped<IEmailer, Emailer>();
  21. services.AddScoped<IHttpClientService, HttpClientService>();
  22. services.AddScoped<IInsuranceCompaniesService, InsuranceCompaniesService>();
  23. services.AddScoped<IInsurancePoliciesService, InsurancePoliciesService>();
  24. services.AddScoped<ISelectionProcessService, SelectionProcessService>();
  25. services.AddScoped<ISelectionLevelService, SelectionLevelService>();
  26. services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
  27. services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
  28. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  29. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  30. services.AddScoped<IApplicantService, ApplicantService>();
  31. services.AddScoped<IAuthenticationService, AuthenticationService>();
  32. services.AddScoped<IAdService, AdService>();
  33. services.AddScoped<ITechnologyService, TechnologyService>();
  34. services.AddScoped<ICommentService, CommentService>();
  35. services.AddScoped<IPatternService, PatternService>();
  36. services.AddScoped<IScheduleService, ScheduleService>();
  37. services.AddScoped<IImportService, ImportService>();
  38. services.AddScoped<ISaveImportedDataService, SaveImportedDataService>();
  39. services.AddScoped<IScreeningTestService, ScreeningTestService>();
  40. services.AddScoped<IFileService, FileService>();
  41. }
  42. /// <summary>
  43. /// App configuration
  44. /// </summary>
  45. public static void ConfigureBusiness(this WebApplication app)
  46. {
  47. //
  48. }
  49. }
  50. }