Sort() public method

public Sort ( string parameter ) : IView
parameter string
return IView
 public void ExpectCarsRepositoryToSortByYear()
 {
     var mockCarsCollection = new Mock<ICollection<Car>>();
     var mockCarsRepository = new Mock<ICarsRepository>();
     mockCarsRepository.Setup(cr => cr.SortedByYear()).Returns(mockCarsCollection.Object);
     var carsController = new CarsController(mockCarsRepository.Object);
     var result = carsController.Sort("year");
     Assert.IsTrue(result.Model.Equals(mockCarsCollection.Object));
 }
 public void ExpectCarsRepositoryToThrowArgumentExceptionWhenSearchingWithInvalidString()
 {
     var mockCarsRepository = new Mock<ICarsRepository>();
     var carsController = new CarsController(mockCarsRepository.Object);
     carsController.Sort(string.Empty);
 }