public void Setup() { _mockPurchaseHandler = MockRepository.GenerateMock <IPurchaseHandler>(); _mockVendingMachineDisplay = MockRepository.GenerateMock <IVendingMachineDisplay>(); _mockVendingMachineHardware = MockRepository.GenerateMock <IVendingMachineHardware>(); _sut = new VendingMachineController(_mockPurchaseHandler, _mockVendingMachineDisplay, _mockVendingMachineHardware); }
public VendingMachineController(IPurchaseHandler purchaseHandler, IVendingMachineDisplay vendingMachineDisplay, IVendingMachineHardware vendingMachineHardware) { _purchaseHandler = purchaseHandler; _vendingMachineDisplay = vendingMachineDisplay; _vendingMachineHardware = vendingMachineHardware; }