コード例 #1
0
        public void AddNewStayForNewClient()
        {
            StayAtHotel stay = new StayAtHotel();

            var dog = _dogService.CreateDogAccount();

            _clientService.CreateClientAccount(dog);

            _reservationManagement.HowLongIsStay(dog);
            _listOfStays.Add(stay);
        }
コード例 #2
0
        public void AddNewStay(int clientId)
        {
            StayAtHotel stay    = new StayAtHotel();
            var         account = _clientService.GetClientAccountById(clientId);

            Console.WriteLine($"This is an account of {account.FirstName} {account.LastName}.");
            Console.WriteLine($"Your dog is {account.Dog.Name}");

            _reservationManagement.HowLongIsStay(account.Dog);

            _listOfStays.Add(stay);
        }