public void Register(Container container)
        {
            if (!_initialized)
            {
                throw new AdpaterNotInitializedException();
            }

            BookOrderRepository bookOrderRepository = new BookOrderRepository(_settings.ConnectionString);
            var bookOrderLineConflictRepository     = new BookOrderLineConflictRepository(_settings.ConnectionString);

            container.RegisterSingleton <IBookOrderRepository>(bookOrderRepository);
            container.RegisterSingleton <IBookOrderLineConflictRepository>(bookOrderLineConflictRepository);
        }
Beispiel #2
0
 public SupplierBookOrderUpdateUseCaseTests()
 {
     _bookOrderRepository             = new BookOrderRepository();
     _bookOrderLineConflictRepository = new BookOrderLineConflictRepository();
 }