Example #1
0
        public Stall(string type)
        {
            // Argument constraints
            if (String.IsNullOrEmpty(type))
                throw new ArgumentException("A stall must have a type", "type");

            _type = type;
            _state = StallState.Closed;
        }
Example #2
0
        public Stall(string type)
        {
            // Argument constraints
            if (String.IsNullOrEmpty(type))
            {
                throw new ArgumentException("A stall must have a type", "type");
            }

            _type  = type;
            _state = StallState.Closed;
        }
Example #3
0
 public void Open()
 {
     _state = StallState.Open;
 }
Example #4
0
 public void Close()
 {
     _state = StallState.Closed;
 }
Example #5
0
 public void Close()
 {
     _state = StallState.Closed;
 }
Example #6
0
 public void Open()
 {
     _state = StallState.Open;
 }