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