public bool Close() { if (_status == AviaryStatus.Opened && _inhabitants.Count == 0) { _status = AviaryStatus.Closed; return(true); } return(false); }
public bool Open() { if (_status == AviaryStatus.Closed) { _status = AviaryStatus.Opened; return(true); } return(false); }
protected Aviary() { _status = AviaryStatus.Opened; _inhabitants = new List <Animal>(); _number = SetNumber(); }