コード例 #1
0
        public void TestAppointmentAdd()
        {
            // arrange
            int result = 0;
            AppointmentLocationVM appointment = new AppointmentLocationVM()
            {
                AppointmentID         = 4,
                AdoptionApplicationID = 4,
                AppointmentTypeID     = "InHomeInspection",
                DateTime         = new DateTime(2020, 8, 3, 12, 00, 00),
                Notes            = "",
                Decicion         = "Undecided",
                LocationID       = 1,
                LocationName     = "New Home",
                LocationAddress1 = "123 Real Ave",
                LocationCity     = "Marion",
                LocationState    = "IA",
                LocationZip      = "52402"
            };
            IAppointmentManager appointmentManager = new AppointmentManager(_appointmentAccessor);

            // act
            result = appointmentManager.AddAppointment(appointment);

            // assert
            Assert.AreEqual(1, result);
        }