public CarsControllerTests() { _carContext = Substitute.For <ICarContext>(); _carService = Substitute.For <ICarService>(); _controller = new CarsController(_carContext, _carService); }
public CarServiceTests() { _validator = Substitute.For <IValidator <Car> >(); _carContext = Substitute.For <ICarContext>(); _carService = new CarService(_carContext, _validator); }
public CarService(ICarContext carContext, IValidator <Car> carValidator) { _carContext = carContext; _carValidator = carValidator; }
public ProducerService(ICarContext carContext) { _carContext = carContext; }
public CarsController(ICarContext context, ICarService carService) { _context = context; _carService = carService; }
public ProducerServiceTests() { _carContext = Substitute.For <ICarContext>(); _producerService = new ProducerService(_carContext); }