Exemplo n.º 1
0
        public void GetAppointmentResourceByContact_Success()
        {
            // Act
            var result   = controller.GetAppointmentResourceByContact(contactID);
            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.");
        }