public async Task ReturnModelList() { //Arrange var vehicleModels = new List <IVehicleModel>() { new VehicleModel() { ID = 1, Name = "X6", Abbreviation = "BMW", VehicleMakeId = 1 }, new VehicleModel() { ID = 2, Name = "Golf5", Abbreviation = "VW", VehicleMakeId = 2 }, new VehicleModel() { ID = 3, Name = "Ford Mustang", Abbreviation = "Ford", VehicleMakeId = 3 }, new VehicleModel() { ID = 4, Name = "Ford Mondeo", Abbreviation = "Ford", VehicleMakeId = 4 }, }.AsEnumerable(); string searchString = ""; string sortBy = ""; int page = 0; Filtering filters = new Filtering(searchString); Sorting sorting = new Sorting(sortBy); Paging paging = new Paging(page); _modelRepoMock.Setup(x => x.GetAll(filters, sorting, paging)).Returns(Task.FromResult(vehicleModels)); //Act var result = await _sut.GetVehicleModelsAsync(filters, sorting, paging); //Assert result.Should().BeEquivalentTo(vehicleModels); }