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.
abp/framework/test/Volo.Abp.ObjectMapping.Tests/Volo/Abp/ObjectMapping/TestContextRegistrar.cs

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>
>();
}
}
}