示例#1
0
 public void Cleanup()
 {
     _coinReturn = null;
     _validator  = null;
     _coinSlot   = null;
     _coinBank   = null;
 }
示例#2
0
 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);
 }
示例#3
0
 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());
 }
示例#6
0
        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();
 }