public void Register_patient_successfully() { MedicalRecordService medicalRecordService = new MedicalRecordService(CreateStubRepository()); MedicalRecord medicalRecord = medicalRecordService.AddEntity(new MedicalRecord(5, new Patient(5, "misa", "123", "Misa", "Misic", "123123123123", new DateTime(), "066123123", "*****@*****.**", new City("Novi Sad", "Mise Dim", new Country("Srbija")), false), new Anamnesis(), new List <Allergies>(), new List <Medicament>())); Assert.NotNull(medicalRecord); }
public MedicalRecord AddEntity(MedicalRecord entity) { return(medicalRecordService.AddEntity(entity)); }