public void CanGetAppointmentsBySpecialization() { // Организация (arrange) SpecializationRecordsListViewModel recordsListViewModel = new SpecializationRecordsListViewModel(mock.Object, 1, 2); // Действие (act) List <PatientAppointment> recordsList = recordsListViewModel.GetAppointmentsBySpecialization(); // Утверждение (assert) Assert.AreEqual(recordsList.Count, 2); }
public ActionResult SpecializationRecords(int specializationId) { specializationRecordsListViewModel = new SpecializationRecordsListViewModel(unitOfWork, specializationId, User.Identity.GetUserId <int>()); specializationRecordsListViewModel.GetAppointmentsBySpecialization(); return(View(specializationRecordsListViewModel)); }