public ExaminerServices(ICanineProjDbContext dbCtx) { dbContext = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); // lets see what SQL is getting generated. dbContext.Database.Log = DbContextLogCallback; }
public ExportToPdfController(ICanineProjDbContext dbCtx, IExportToPdfServices exportSvcs) { dbContext = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); exportServices = exportSvcs ?? throw new ArgumentNullException(nameof(exportSvcs)); }
public EquipmentRestrictionController(ICanineProjDbContext dbCtx, IEquipmentRestrictionServices equipmentRestrictionSvcs) { dbContext = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); equipmentRestrictionServices = equipmentRestrictionSvcs ?? throw new ArgumentNullException(nameof(equipmentRestrictionSvcs)); }
public CertificationTypeController(ICanineProjDbContext dbCtx, ICertificationTypeServices certificationTypeSvcs) { dbContext = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); certificationTypeServices = certificationTypeSvcs ?? throw new ArgumentNullException(nameof(certificationTypeSvcs)); }
public TestController(ICanineProjDbContext dbCtx, ITestServices testSvcs) { dbContext = dbCtx ?? throw new ArgumentNullException(nameof(dbCtx)); testServices = testSvcs ?? throw new ArgumentNullException(nameof(testSvcs)); }