public string RegisterAnimal(string type, string name, int energy, int happiness, int procedureTime) { IAnimal animal = AnimalFactory.CreateAnimal(type, name, energy, happiness, procedureTime); this.hotel.Accommodate(animal); return($"Animal {name} registered successfully"); }
public string RegisterAnimal(string type, string name, int energy, int happiness, int procedureTime) { IAnimal animal = af.CreateAnimal(type, name, energy, happiness, procedureTime); this.hotel.Accomodate(animal); string result = $"Animal {name} registered successfully"; return(result); }