5
Kapsüllemeyi bozmadan Bağımlılık Enjeksiyonunu kullanabilir miyim?
İşte benim Çözümüm ve projelerim: BookStore (çözüm) BookStore.Coupler (proje) Bootstrapper.cs BookStore.Domain (proje) CreateBookCommandValidator.cs CompositeValidator.cs IValidate.cs IValidator.cs ICommandHandler.cs BookStore.Altyapı (proje) CreateBookCommandHandler.cs ValidationCommandHandlerDecorator.cs BookStore.Web (proje) Global.asax BookStore.BatchProcesses (proje) program.cs Bootstrapper.cs : public static class Bootstrapper.cs { // I'm using SimpleInjector as my DI Container public static void Initialize(Container container) { container.RegisterManyForOpenGeneric(typeof(ICommandHandler<>), typeof(CreateBookCommandHandler).Assembly); …