Пример #1
0
 public StoragesController(CursedDataContext db,
                           [FromServices] IErrorHandlerFactory errorHandlerFactory,
                           [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new StoragesLogic(db);
     logicValidation  = new StoragesLogicValidation(db, errorHandlerFactory);
     this.logProvider = logProvider;
 }
Пример #2
0
 public StoragesTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new StoragesLogicValidation(fixture.db, new StatusMessageFactory());
 }