Esempio n. 1
0
        static void Main(string[] args)
        {
            // Create a new object that manages our pets
            var petsController = new PetsController();

            petsController.LoadAllPets();

            // Creates a new object that represent interacting with our users
            var frontEnd = new FrontEnd(petsController);

            frontEnd.Greeting();
            frontEnd.Menu();

            petsController.PrintLog();
            petsController.SaveAllPets();
        }
Esempio n. 2
0
 // Constructor, it is called when we do `new Fronted(...)`
 public FrontEnd(PetsController petsControllerToUse)
 {
     OurPetsController = petsControllerToUse;
 }