Example #1
0
        public void AddAppointmentContact_Success()
        {
            // Arrange
            var appointmentContact = new AppointmentContactViewModel
            {
                AppointmentID = 1,
                ContactID     = 1
            };

            // Act
            var result   = controller.AddAppointmentContact(appointmentContact);
            var response = result as Response <AppointmentContactViewModel>;

            // Assert
            Assert.IsTrue(response != null, "Response can't be null");
            Assert.IsTrue(response.ResultCode == 0, "Appointment contact could not be created.");
        }