public void CleanFeatureShouldReturnFalseWhenInvalidInput(int seconds, int waterMl) { var cleaningUnit = new SteamBlastUnit(new CoffeeMachineEntity()); UnitResult <CoffeeMachineEntity> result = cleaningUnit.Execute(seconds, waterMl); Assert.IsFalse(result.IsSuccessful); }
public bool Execute() { var entity = new CoffeeMachineEntity(); ISteamBlastUnit cleaningUnit = new SteamBlastUnit(entity); UnitResult <CoffeeMachineEntity> operationResult = cleaningUnit.Execute(9, 50); IEspressoUnit espressoUnit = new EspressoUnit(operationResult.Value); operationResult = espressoUnit.Execute(6, 50); bool isSuccessful = operationResult.IsSuccessful && operationResult.IsSuccessful; return(isSuccessful); }
public bool Execute() { ISteamBlastUnit steamBlastUnit = new SteamBlastUnit(new CoffeeMachineEntity()); return(steamBlastUnit.Execute(9, 100).IsSuccessful); }