Esempio n. 1
0
        public async Task GetAllVehicleModel()
        {
            mockVehicleServiceModel.Setup(x => x.GetAllAsync(search, sortOrder, page));
            await mockVehicleServiceModel.Object.GetAllAsync(search, sortOrder, page);

            vehicleModel.Should().NotBeNull();
            vehicleModel.Should().Equals(modelId);
            mockVehicleServiceModel.Verify(x => x.GetAllAsync(search, sortOrder, page), Times.Once);
        }