Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
 }
Exemple #4
0
 public CoordinatesLogic()
 {
     _random      = new Random(Guid.NewGuid().GetHashCode());
     _animalLogic = new AnimalLogic();
 }
Exemple #5
0
 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;
 }
Exemple #8
0
 public AnimalController(IAnimalLogic animalLogic)
 {
     _animalLogic = animalLogic;
 }