public PatientAdded(int userId, Guid patientId, string firstname, string surname, Title title, NHSNumber nhsNumber) : base(userId) { PatientId = patientId; FirstName = firstname; Surname = surname; Title = title; NhsNumber = nhsNumber; }
public AddPatient(int userId, Guid patientId, string firstname, string surname, string middlename, Title title, Gender gender, DateTime dateOfBirth, NHSNumber nhsNumber) : base(userId) { PatientId = patientId; FirstName = firstname; Surname = surname; MiddleName = middlename; Title = title; Gender = gender; DateOfBirth = dateOfBirth; NhsNumber = nhsNumber; }
public PatientAddedEventBuilder WithNhsNumber(NHSNumber nhsNumber) { _nhsNumber = nhsNumber; return this; }
public Patient(int userId, Guid patientId, string firstname, string surname, string middlename, Title title, Gender gender, DateTime dateOfBirth, NHSNumber nhsNumber) { //validation rules here ApplyChange(new PatientAdded_v2(userId, patientId, firstname, surname, middlename, title, gender, dateOfBirth, nhsNumber)); }