public CaretakingLogicController(Mode mode) { if (mode == Mode.Production) { database = Databases.productionDatabase; animalLogic = new AnimalLogicController(Mode.Production); } else if (mode == Mode.Test) { database = Databases.testDatabase; animalLogic = new AnimalLogicController(Mode.Test); } }
public TodoLogic(Mode mode) { if (mode == Mode.Production) { animalLogic = new AnimalLogicController(Mode.Production); visitorLogic = new VisitorLogic(Mode.Production); employeeLogic = new EmployeeLogicController(Mode.Production); caretakingLogic = new CaretakingLogicController(Mode.Production); } else { animalLogic = new AnimalLogicController(Mode.Test); visitorLogic = new VisitorLogic(Mode.Test); employeeLogic = new EmployeeLogicController(Mode.Test); caretakingLogic = new CaretakingLogicController(Mode.Test); } }
static AnimalResolver() { _animalDAO = new AnimalDAO(); _animalLogic = new AnimalLogic(_animalDAO); }
public CoordinatesLogic() { _random = new Random(Guid.NewGuid().GetHashCode()); _animalLogic = new AnimalLogic(); }
public ConsoleUserInterface() { _animalLogic = new AnimalLogic(); }
public MovementLogic() { _coordinatesLogic = new CoordinatesLogic(); _healthLogic = new HealthLogic(); _animalLogic = new AnimalLogic(); }
public MovementLogic(ICoordinatesLogic coordinatesLogic, IHealthLogic healthLogic, IAnimalLogic animalLogic) { _coordinatesLogic = coordinatesLogic; _healthLogic = healthLogic; _animalLogic = animalLogic; }
public AnimalController(IAnimalLogic animalLogic) { _animalLogic = animalLogic; }