DD.WellWorkover.Cloud/AsbCloudInfrastructure/Validators/DependencyInjection.cs
Харченко Владимир 87d7563ed3 CS2-27: Fixed ClusterService unit tests
2022-01-31 16:13:27 +05:00

32 lines
1.8 KiB
C#

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<IValidator<AuthDto>, AuthDtoValidator>();
// services.AddTransient<IValidator<ClusterDto>, ClusterDtoValidator>();
// services.AddTransient<IValidator<CompanyDto>, CompanyDtoValidator>();
// services.AddTransient<IValidator<DepositDto>, DepositDtoValidator>();
// services.AddTransient<IValidator<DrillFlowChartDto>, DrillFlowChartDtoValidator>();
// services.AddTransient<IValidator<EventDto>, EventDtoValidator>();
// services.AddTransient<IValidator<FileInfoDto>, FileInfoDtoValidator>();
// services.AddTransient<IValidator<FileMarkDto>, FileMarkDtoValidator>();
// services.AddTransient<IValidator<MeasureDto>, MeasureDtoValidator>();
// services.AddTransient<IValidator<MessageDto>, MessageDtoValidator>();
// services.AddTransient<IValidator<PermissionDto>, PermissionDtoValidator>();
// services.AddTransient<IValidator<ReportPropertiesDto>, ReportPropertiesDtoValidator>();
// services.AddTransient<IValidator<UserRegistrationDto>, UserRegistrationDtoValidator>();
// services.AddTransient<IValidator<UserRoleDto>, UserRoleDtoValidator>();
// services.AddTransient<IValidator<WellDto>, WellDtoValidator>();
// services.AddTransient<IValidator<WellOperationDto>, WellOperationDtoValidator>();
return services;
}
}
}