public void WhenCreatingNewTourguide_ThenTourguideIsSaved() { // ARRANGE Tourguide tg = new Tourguide { PersonID = 3, Person = new Person() { FirstName = "Mirabella", LastName = "Nemesis", BirthDate = new DateTime(1997, 10, 02), IDNumber = 333333338, IDType = "identity card", AddressCity = "Wien", AddressCountry = "Austria", AddressFree = "Neumann u 34", AddressZip = "3200", Phone = 063099912333, ValidTo = new DateTime(2024, 02, 02) }, Dailyallowance = 25000, Taxidentification = 198600555 }; ///ACT bl.Save(tg); ///ASSERT Assert.That(tourguideRepository.SavedObjects.Count, Is.EqualTo(1)); }
private void Connect(Tourguide guide, Language language) { guide.Languages.Add(language); language.Tourguide = guide; }
private void Connect(Tourguide guide, OnHoliday holiday) { guide.OnHolidays.Add(holiday); holiday.Tourguide = guide; }
private void ConnectToursAndGuides(Tour tour, Tourguide guide) { guide.Tours.Add(tour); tour.Tourguide = guide; }