public DoctorFakeRepository(SpecialtyFakeRepository specialtyFakeRepository = null)
        {
            specialtyFakeRepository = specialtyFakeRepository ?? new SpecialtyFakeRepository();

            Document cpf  = new Document("39258256069");
            Document cpf2 = new Document("96610116059");

            doctors = new List <Doctor>()
            {
                new Doctor("Usson", "151775266", cpf, DateTime.Parse("15/03/1976"), specialtyFakeRepository.specialties.FirstOrDefault()),
                new Doctor("Hadur", "241039964", cpf2, DateTime.Parse("01/04/1995"), specialtyFakeRepository.specialties[1])
            };
        }
Esempio n. 2
0
        public HospitalFakeRepository(SpecialtyFakeRepository specialtyFakeRepository = null)
        {
            specialtyFakeRepository = specialtyFakeRepository ?? new SpecialtyFakeRepository();

            Specialty specialty = specialtyFakeRepository.specialties[0];
            Hospital  hospital  = new Hospital("São Lucas");

            hospital.AddSpecialty(specialty);

            Hospital hospital2 = new Hospital("Dom Orione");

            hospitals.Add(hospital);
            hospitals.Add(hospital2);
        }