Ejemplo n.º 1
0
        public void GivenNewAppointmentWhenAddingThenCreatesWithRepository()
        {
            _service.Add(new AppointmentDTO());

            _repository.Verify(x => x.Create(It.IsAny <Appointment>()), Times.Once());
        }
 private void AddAppointment(NewAppointmentViewModel appointment)
 {
     _appointmentService.Add(_mapper.Map <AppointmentDTO>(appointment));
 }