Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
745 B

using Microsoft.Extensions.DependencyInjection;
namespace Volo.Abp.ObjectMapping;
public static class TestContextRegistrar
{
public static IServiceCollection AddTest1AutoObjectMappingProvider<TContext>(this IServiceCollection services)
{
return services
.AddTransient<
IAutoObjectMappingProvider<TContext>,
Test1AutoObjectMappingProvider<TContext>
>();
}
public static IServiceCollection AddTest2AutoObjectMappingProvider<TContext>(this IServiceCollection services)
{
return services
.AddTransient<
IAutoObjectMappingProvider<TContext>,
Test2AutoObjectMappingProvider<TContext>
>();
}
}