Beispiel #1
0
        private Leap CreateALeap(Leaper currentLeaper, HostRepository hostRepository, EventRepository eventRepository)
        {
            var createdLeap = new Leap(currentLeaper, hostRepository.GetRandomHost(), eventRepository.GetRandomEvent());

            return(createdLeap);
        }
Beispiel #2
0
        public void TakeALeap(Leaper currentLeaper, HostRepository hostRepository, EventRepository eventRepository)
        {
            var newLeap = CreateALeap(currentLeaper, hostRepository, eventRepository);

            _listOfLeaps.Add(newLeap);
        }