public void GetRequestsErrorTest() { //// Arranage var errors = new List <string>(); var mockRepository = new Mock <InterfaceInstructorRepository>(); var instructorService = new InstructorService(mockRepository.Object); //// Act instructorService.GetRequests(-1, ref errors); //// Assert Assert.AreEqual(1, errors.Count); }