Exemple #1
0
        public void GetAppointmentResource_Success()
        {
            // Act
            var result   = controller.GetAppointmentResource(appointmentId).Result;
            var response = result as Response <AppointmentResourceViewModel>;

            // Assert
            Assert.IsTrue(response != null, "Response can't be null");
            Assert.IsTrue(response.DataItems != null, "Data items can't be null");
            Assert.IsTrue(response.DataItems.Count > 0, "Atleast one appointment resource must exists.");
        }