public void ShouldCheckTypeOfInstanceResultAfterCreateFromVisitsController_WithMock() { var visits = new Mock <IVisitRepository>(); var doctors = new Mock <IDoctorRepository>(); var patients = new Mock <IPatientRepository>(); _visitsController = new VisitsController(visits.Object, doctors.Object, patients.Object); var expectedType = typeof(ActionResult); var value = _visitsController.Create(new Visit()); Assert.IsInstanceOfType(value, expectedType); }