Beispiel #1
0
 public RecipesController(CursedDataContext db,
                          [FromServices] IErrorHandlerFactory errorHandlerFactory,
                          [FromServices] ILogProvider <CursedAuthenticationContext> logProvider)
 {
     logic            = new RecipesLogic(db);
     logicValidation  = new RecipesLogicValidation(db, errorHandlerFactory);
     this.logProvider = logProvider;
 }
Beispiel #2
0
 public RecipesTests(TestsFixture fixture)
 {
     this.fixture    = fixture;
     logicValidation = new RecipesLogicValidation(fixture.db, new StatusMessageFactory());
 }