public AddAnimal(IConsoleManagerInternal manager, IZooDatabase database, IRandomizer randomizer) : base(manager) { _database = database; _randomizer = randomizer; Title = "Add animal"; _components.Add(_speciesComponent = new TextBoxComponent("Species", 28)); _components.Add(_nameComponent = new TextBoxComponent("Name", 28)); _components.Add(_ageComponent = new TextBoxComponent("Age", 28)); }
public AnimalList(IConsoleManagerInternal manager, IZooDatabase database) : base(manager) { _database = database; Title = "Animals"; }
public ZooManager(IRandomizer randomizer, IZooDatabase database) { Randomizer = randomizer; Database = database; }
public static IZooManager FromDatabase(IRandomizer randomizer, IZooDatabase database) => new ZooManager(randomizer, database);
public WipeDatabase(IConsoleManagerInternal manager, IZooDatabase zooDatabase) : base(manager) { _zooDatabase = zooDatabase; Title = "Confirm wipe database"; }