/// <summary> /// Constructor /// </summary> /// <param name="configManager"> to get standalone flag and current user</param> /// <param name="eventAggregator"> for publishing new user to other listeners</param> /// <param name="userControllerProxy"> proxy for user web service operations</param> /// <exception cref="ArgumentNullException"> if configManager/eventAggregator is null</exception> public UserManagerImpl(IConfigurationManager configManager, IEventAggregator eventAggregator, UserControllerClient userControllerProxy) { if (configManager == null) { throw new ArgumentNullException("configManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (userControllerProxy == null) { throw new ArgumentNullException("userControllerProxy"); } this.configManager = configManager; this.eventAggregator = eventAggregator; this.userControllerProxy = userControllerProxy; Users = new List <IUser>(); }
public UserControllerClientProxy() { _client = new UserControllerClient(); }