Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

BusinessConfigurationExtension.cs 2.7KB

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