public TaskController(ISessionScopeFactory sessionScopeFactory, ITaskManager taskManager , IPartakerManager partakerManager, IAccountManager accountManager, IStaffManager staffManager) { if (sessionScopeFactory == null) throw new ArgumentException("sessionScopeFactory"); if (taskManager == null) throw new ArgumentException("TaskManager"); m_SessionScopeFactory = sessionScopeFactory; m_TaskManager = taskManager; m_PartakerManager = partakerManager; m_AccountManager = accountManager; m_StaffManager = staffManager; }
public StaffController(ISessionScopeFactory sessionScopeFactory, IStaffManager staffManager, IPartakerManager partakerManager) : base(sessionScopeFactory) { Args.NotNull(sessionScopeFactory, nameof(sessionScopeFactory)); Args.NotNull(staffManager, nameof(staffManager)); Args.NotNull(partakerManager, nameof(partakerManager)); this.m_SessionScopeFactory = sessionScopeFactory; this.StaffManager = staffManager; }