mirror of https://github.com/abpframework/abp
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.
25 lines
822 B
25 lines
822 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>
|
|
>();
|
|
}
|
|
}
|
|
} |