public void Cleanup() { _coinReturn = null; _validator = null; _coinSlot = null; _coinBank = null; }
public void Initialize() { _coinReturn = new VmCoinReturn(); _validator = new VmCoinValidator(); _coinSlot = new VmCoinSlot(new List <string>(), _coinReturn, _validator); _coinBank = new VmCoinBank(new List <string>(), _validator, _coinSlot, _coinReturn); }
public void Cleanup() { _foodDispenser = null; _coinReturn = null; _validator = null; _coinSlot = null; _foodSlot = null; _coinBank = null; _display = null; _testUi = null; }
public void Cleanup() { _testFoodDispenser = null; _inventoryToTest = null; _coinReturn = null; _validator = null; _coinSlot = null; _foodSlot = null; _coinBank = null; _display = null; }
public void Initialize() { _testFoodDispenser = new VmFoodDispenser(); _inventoryToTest = new List <List <string> >(); _coinReturn = new VmCoinReturn(); _validator = new VmCoinValidator(); _coinSlot = new VmCoinSlot(new List <string>(), _coinReturn, _validator); _foodSlot = new VmFoodSlot(); _coinBank = new VmCoinBank(new List <string>(), _validator, _coinSlot, _coinReturn); _display = new VmDisplay(new MockGetInput()); }
public void Initialize() { IConsole mockConsole = new MockGetInput(); _foodDispenser = new VmFoodDispenser(); _coinReturn = new VmCoinReturn(); _validator = new VmCoinValidator(); _coinSlot = new VmCoinSlot(new List <string>(), _coinReturn, _validator); _foodSlot = new VmFoodSlot(); _coinBank = new VmCoinBank(new List <string>(), _validator, _coinSlot, _coinReturn); _display = new VmDisplay(mockConsole); _testUi = new VmUi(_coinSlot, _validator, _coinReturn, _foodDispenser, _foodSlot, _coinBank, mockConsole, _display); }
public void Cleanup() { _testValidator = null; }
public void Initialize() { _testValidator = new VmCoinValidator(); }