Esempio n. 1
0
        public void GetPatient_Physiotherapist_Succesful()
        {
            // Arrange
            Helpers.PhysiotherapistLogin();

            // Act
            Patient patient = PatientResource.GetPatient(2);

            // Assert
            Assert.AreEqual(2, patient.Id);
            Assert.AreEqual("Kristian Magnus", patient.FirstName);
            Assert.AreEqual("Larsen", patient.LastName);
            Assert.AreEqual("*****@*****.**", patient.Email);
            Assert.AreEqual("12345678", patient.Phone);
            Assert.AreEqual(1943, ((DateTime)patient.BirthDate).Year);
            Assert.AreEqual(11, ((DateTime)patient.BirthDate).Month);
            Assert.AreEqual(7, ((DateTime)patient.BirthDate).Day);
            Assert.AreEqual(Sex.Male, patient.Sex);
            Assert.AreEqual((short)175, patient.Height);
            Assert.AreEqual((short)91, patient.Weight);
            Assert.AreEqual("1000", patient.ZipCode);
            Assert.AreEqual("DK", patient.CountryCode);
            Assert.AreEqual("Ribevej 3", patient.Address);
        }
Esempio n. 2
0
        public void GetPatient_Patient_Succesful()
        {
            // Arrange
            Helpers.PatientLogin();

            // Act
            Patient patient = PatientResource.GetPatient(Resource.UserId);

            // Assert
            Assert.AreEqual(1, patient.Id);
            Assert.AreEqual("Anna", patient.FirstName);
            Assert.AreEqual("Larsen", patient.LastName);
            Assert.AreEqual("*****@*****.**", patient.Email);
            Assert.AreEqual("26713312", patient.Phone);
            Assert.AreEqual(1957, ((DateTime)patient.BirthDate).Year);
            Assert.AreEqual(3, ((DateTime)patient.BirthDate).Month);
            Assert.AreEqual(4, ((DateTime)patient.BirthDate).Day);
            Assert.AreEqual(Sex.Female, patient.Sex);
            Assert.AreEqual((short)165, patient.Height);
            Assert.AreEqual((short)60, patient.Weight);
            Assert.AreEqual("1000", patient.ZipCode);
            Assert.AreEqual("DK", patient.CountryCode);
            Assert.AreEqual("Mitchellsgade 8", patient.Address);
        }
Esempio n. 3
0
 public void TestInitialize()
 {
     JournalEntryResource = new JournalEntryResource();
     Helpers.SetBaseAddress();
     Helpers.Wipe();
 }