public void SetUp()
 {
     _carActionOnCreationMock = new Mock<ICarActionOnCreation>();
     _electroACtion = new Mock<IElectroCarActionOnCreation>();
     _carFactory = new CarFactory(_carActionOnCreationMock.Object, _electroACtion.Object);
 }
Example #2
0
 public Program(CarFactory carFactory, ICarRepository repository)
 {
     MaranelloCarFactory = carFactory;
     CarRepository = repository;
 }