public async void ListAsync_Success() { // Arrange var _monitoringRepositoryMock = MonitoringTestBase.ListAsync(); var _vehicleTypeRepositoryMock = VehicleTypeTestBase.ListAsync(); var _service = new MonitoringService(_mapper, _monitoringRepositoryMock.Object, _vehicleTypeRepositoryMock.Object); // Act var result = await _service.ListAsync(); //Assert _monitoringRepositoryMock.Verify(_ => _.ListAsync(), Times.Once); Assert.NotNull(result); }