public MvcApplication() { if (ConfigurationManager.AppSettings["Logging"].AsBool()) { logger = new Logger(); } }
public HomeController() { if (ConfigurationManager.AppSettings["Logging"].AsBool()) { logger = new Logger(); } }
public TimeLogger(IUserLogger userLogger, ITaskManager taskManager, ITask task, IEmailSender emailSender, IErrorLogger errorLogger) { this.userLogger = userLogger; this.taskManager = taskManager; this.task = task; this.emailSender = emailSender; this.errorLogger = errorLogger; }
public TimeLogger() { task = new TaskLogger(); emailSender = new EmailSender(); errorLogger = new ErrorLogger(); userLogger = new UserLogger(); taskManager = new TaskManager(); }
public AccountController(UserManager <ApplicationUser> userManager) { _userManager = userManager; if (ConfigurationManager.AppSettings["Logging"].AsBool()) { logger = new Logger(); } }
public ProductOrdering(IUserLogger userLogger, IProductChecker productChecker, IOrder order, IEmailSender emailSender, IErrorLogger errorLogger, IStockManager stockManager) { this.userLogger = userLogger; this.productChecker = productChecker; this.order = order; this.emailSender = emailSender; this.errorLogger = errorLogger; this.stockManager = stockManager; }
public ProductOrdering() { userLogger = new UserLogger(); productChecker = new ProductChecker(); order = new Order(); emailSender = new EmailSender(); errorLogger = new ErrorLogger(); stockManager = new StockManager(); }
public UserRepository(DatabaseOptions databaseOptions, SharedOptions sharedOptions, IDataRepository dataRepository, IUserLogger userAuditLog, IMapper autoMapper) { DatabaseOptions = databaseOptions ?? throw new ArgumentNullException(nameof(databaseOptions)); SharedOptions = sharedOptions ?? throw new ArgumentNullException(nameof(sharedOptions)); DataRepository = dataRepository ?? throw new ArgumentNullException(nameof(dataRepository)); UserAuditLog = userAuditLog ?? throw new ArgumentNullException(nameof(userAuditLog)); AutoMapper = autoMapper ?? throw new ArgumentNullException(nameof(autoMapper)); }
public MailFluentMessage( UserFluent userFluent, IUserLogger userLogger, MyMailMessage <TMail> mailMessage) { this.userFluent = userFluent; this.userLogger = userLogger; this.MailMessage = mailMessage; }
public MailFluent( UserFluent userFluent, IUserLogger userLogger, IEmailReader emailReader) { this.userFluent = userFluent; this.userLogger = userLogger; this.emailReader = emailReader; }
public UserFluent( IUserLogger userLogger, IBrowser browser, IEmailReader emailReader, SettableClock settableClock) { this.browserFluent = new BrowserFluent(userLogger, browser); this.mailFluent = new MailFluent(this, userLogger, emailReader); this.userLogger = userLogger; this.settableClock = settableClock; }
public UserFluent( IUserLogger userLogger, IEmailReader emailReader, SettableClock settableClock, ICurrentUserLogger currentUserLogger, IFactory factory, MailFluent mailFluent, BrowserFluent browserFluent) { this.userLogger = userLogger; this.settableClock = settableClock; this.currentUserLogger = currentUserLogger; this.factory = factory; this.mailFluent = mailFluent; this.browserFluent = browserFluent; }
public BrowserFluent(IUserLogger logs, IBrowser browser) : base(logs, browser) { }
public UserHandler(IUserLogger logger) { _logger = logger; }
public CurrentUserLogger(IUserLogger logger) { this.logger = logger; }