Ejemplo n.º 1
0
        public void AddAppointmentResource_Success()
        {
            // Arrange
            var appointmentResources = new AppointmentResourceViewModel()
            {
                AppointmentID  = 1,
                ResourceTypeID = 2,
                ResourceID     = 5
            };

            // Act

            var result   = controller.AddAppointmentResource(appointmentResources);
            var response = result as Response <AppointmentResourceViewModel>;

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