Inheritance: Identifiable, IPrincipal, IIdentity
Exemplo n.º 1
0
		public Project(bool _isPublic, string _name, string _sourceControl, 
			string _buildSystem, User _owner)
		{
			this._owner = _owner;
			this._isPublic = _isPublic;
			this._name = _name;
			this._sourceControl = _sourceControl;
			this._buildSystem = _buildSystem;

			_sourceControlProperties = new Hashtable(
				CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default);
		}
Exemplo n.º 2
0
		public object Execute(object system)
		{
			UserCollection users = (system as PestControlModel).Users;

			User user = users.FindByEmail( _email);

			if (user != null)
			{
				throw new ApplicationException("User with same email already registered");
			}

			user = new User(_name, _email, _pass);

			users.Add( user );

			return user;
		}
Exemplo n.º 3
0
		public void Add(User user)
		{
			lock (this.InnerList.SyncRoot)
			{
				InnerList.Add(user);
			}
		}