public ProductsCatalogController(CursedDataContext db, [FromServices] ILicenseValidation licenseValidation, [FromServices] IErrorHandlerFactory errorHandlerFactory, [FromServices] ILogProvider <CursedAuthenticationContext> logProvider) { logic = new ProductsCatalogLogic(db, licenseValidation); logicValidation = new ProductsCatalogLogicValidation(db, errorHandlerFactory); this.logProvider = logProvider; }
public ProductsCatalogTests(TestsFixture fixture) { this.fixture = fixture; logicValidation = new ProductsCatalogLogicValidation(fixture.db, new StatusMessageFactory()); }