public void CreateCar_CallsService() { Car carOne = new Car("toyota", "model", "engine", 4, 4, ""); var result = _controller.CreateCar(carOne); _mock.Verify(x => x.CreateVehicle(carOne)); Assert.NotNull(result); Assert.IsType <OkObjectResult>(result); }