//implementation injectable! public static void SetImplementation(IStringExtensions implementation) { if (implementation == null) { throw new ArgumentNullException("implementation"); } _implementation = implementation; }
public Handler(DataContext context, UserManager <AppUser> userManager, IJwtGenerator jwtGenerator, IStringExtensions stringUtils) { _jwtGenerator = jwtGenerator; _userManager = userManager; _context = context; _stringUtils = stringUtils; }
public LandingController(IProjectRepository projectRepository, IUserRepository userRepository, ITaskProcessor taskProcessor, IStringExtensions stringExtensions, IProjectProcessor projectProcessor, INotifier notifier, INewsProcessor newsProcessor) { this.projectRepository = projectRepository; this.userRepository = userRepository; this.taskProcessor = taskProcessor; this.stringExtensions = stringExtensions; this.projectProcessor = projectProcessor; this.notifier = notifier; this.newsProcessor = newsProcessor; }
/// <summary> /// Initializes a new instance of the <see cref="QuickTaskController"/> class. /// </summary> /// <param name="userProcessor"> /// The user processor. /// </param> /// <param name="taskProcessor"> /// The task processor. /// </param> /// <param name="notifier"> /// The notifier. /// </param> /// <param name="newsProcessor"> /// The news processor. /// </param> /// <param name="stringExtensions"> /// The string extensions. /// </param> public QuickTaskController( IUserProcessor userProcessor, ITaskProcessor taskProcessor, INotifier notifier, INewsProcessor newsProcessor, IStringExtensions stringExtensions) { this.userProcessor = userProcessor; this.taskProcessor = taskProcessor; this.notifier = notifier; this.newsProcessor = newsProcessor; this.stringExtensions = stringExtensions; }
/// <summary> /// Initializes a new instance of the <see cref="ProjectController"/> class. /// </summary> /// <param name="taskProcessor"> /// The task processor. /// </param> /// <param name="userProcessor"> /// The user processor. /// </param> /// <param name="projectProcessor"> /// The project processor. /// </param> /// <param name="notifier"> /// The notifier. /// </param> /// <param name="newsProcessor"> /// The news processor. /// </param> /// <param name="stringExtensions"> /// The string extensions. /// </param> /// <param name="reminderProcessor"> /// The reminder processor. /// </param> public ProjectController(ITaskProcessor taskProcessor, IUserProcessor userProcessor, IProjectProcessor projectProcessor, INotifier notifier, INewsProcessor newsProcessor, IStringExtensions stringExtensions, IReminderProcessor reminderProcessor) { this.projectProcessor = projectProcessor; this.notifier = notifier; this.taskProcessor = taskProcessor; this.userProcessor = userProcessor; this.newsProcessor = newsProcessor; this.stringExtensions = stringExtensions; this.reminderProcessor = reminderProcessor; }