using AsbCloudApp.Data; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using FluentValidation; namespace AsbCloudInfrastructure.Validators { public static class DependencyInjection { public static IServiceCollection AddValidators(this IServiceCollection services) { services.AddTransient, AuthDtoValidator>(); services.AddTransient, ClusterDtoValidator>(); services.AddTransient, CompanyDtoValidator>(); services.AddTransient, DepositDtoValidator>(); services.AddTransient, DrillFlowChartDtoValidator>(); services.AddTransient, EventDtoValidator>(); services.AddTransient, FileInfoDtoValidator>(); services.AddTransient, FileMarkDtoValidator>(); services.AddTransient, MeasureDtoValidator>(); services.AddTransient, MessageDtoValidator>(); services.AddTransient, PermissionDtoValidator>(); services.AddTransient, ReportPropertiesDtoValidator>(); services.AddTransient, UserRegistrationDtoValidator>(); services.AddTransient, UserRoleDtoValidator>(); services.AddTransient, WellDtoValidator>(); services.AddTransient, WellOperationDtoValidator>(); return services; } } }