示例#1
0
        public UserController(IUsersView view, IList users)
        {
            _view  = view;
            _users = users;

            view.SetController(this);
        }
示例#2
0
        public UsersController(IUsersView userView)
        {
            _userView          = userView;
            _userView.UserInfo = new User("", 0, "", User.SexOfPerson.Male, User.UserStatus.Active);

            userView.SetController(this);
            _service = new UPSAssignment.Service.Service();
            _service.SetConfiguration(ConfigurationManager.AppSettings["ServiceApiURL"].ToString(), ConfigurationManager.AppSettings["ApiToken"].ToString());
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UsersController"/> class by using the specified view context and data source.
 /// </summary>
 /// <param name="view">The view context.</param>
 /// <param name="mails">The data source.</param>
 public UsersController(IUsersView view, IEnumerable <User> users)
 {
     this.view  = view;
     this.users = users;
     view.SetController(this);
 }