Appointments.Web.Tests.Controllers.AppointmentsControllerTest.Update_Appointment_updates_an_appointment_on_repository C# (CSharp) Method

Update_Appointment_updates_an_appointment_on_repository() private method

        public void Update_Appointment_updates_an_appointment_on_repository()
        {
            var repository = new InMemoryAppointmentRepository();
            repository.Create(MakeAppointment(1, "John"));

            var controller = GetAppointmentsController(repository);
            controller.Edit(MakeAppointment(1, "Charles"));

            Assert.That(repository.FindById(1).Name, Is.EqualTo("Charles"));
        }