Ejemplo n.º 1
0
 public CoffeeMachineComanderForTest(CoffeeMachineComander CoffeeMachineComander, IBeverageQuantityChecker mock, IEmailNotifier emailMock)
 {
     _coffeeMachineComander = CoffeeMachineComander;
     _mock = mock;
     _emailMock = emailMock;
 }
Ejemplo n.º 2
0
 public void InitializeGlopForTest()
 {
     var mock = Substitute.For<IBeverageQuantityChecker>();
     var emailNotifier = Substitute.For<IEmailNotifier>();
     mock.IsEmpty(Arg.Any<string>()).Returns(false);
     var glop = new CoffeeMachineComander(mock,emailNotifier);
     _coffeeMachineComanderForTest = new CoffeeMachineComanderForTest(glop, mock,emailNotifier);
 }