Esempio n. 1
0
        public static BloodDonor Create(string type, Guid patientId, DateTime applyDate)
        {
            var instance = new BloodDonor {
                BloodDonorId = Guid.NewGuid()
            };

            instance.Update(type, patientId, applyDate, false, false, null);
            return(instance);
        }
Esempio n. 2
0
        public static BloodDonor Create(string type, Guid patientId)
        {
            var instance = new BloodDonor {
                BloodDonorId = Guid.NewGuid()
            };

            instance.Update(type, patientId);
            return(instance);
        }
Esempio n. 3
0
        public static Patient Create(string firstName, string lastName, string email, string password, string city, DateTime birthdate, string phoneNumber, BloodDonor bloodDonor)
        {
            var instance = new Patient {
                PatientId = Guid.NewGuid()
            };

            instance.Update(firstName, lastName, email, password, city, birthdate, phoneNumber);
            return(instance);
        }