public static void RegisterFactories(IServiceCollection services) { DependencyRegistration.RegisterScopedInterfaces(services, typeof(HandlersDiConfig), @namespace: "DS.Handlers.Strategies.Factories", componentNameSuffix: "Factory"); }
public static void RegisterFactories(IServiceCollection services) { DependencyRegistration.RegisterScopedInterfaces(services, typeof(DomainModelDiConfig), @namespace: "DS.DomainModel.Entities", componentNameSuffix: "Factory"); }
public static void RegisterRepositories(IServiceCollection services) { DependencyRegistration.RegisterScopedInterfaces(services, typeof(DataAccessDiConfig), @namespace: "DS.DataAccess.Repositories", componentNameSuffix: "Repository"); services.AddScoped <IDbContext>(provider => new InMemoryDatabase()); }