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; }
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; }
public void Open() { _state = StallState.Open; }
public void Close() { _state = StallState.Closed; }