public void CleanFeatureShouldReturnFalseWhenInvalidInput(int seconds, int waterMl)
        {
            var cleaningUnit = new SteamBlastUnit(new CoffeeMachineEntity());
            UnitResult <CoffeeMachineEntity> result = cleaningUnit.Execute(seconds, waterMl);

            Assert.IsFalse(result.IsSuccessful);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public bool Execute()
        {
            ISteamBlastUnit steamBlastUnit = new SteamBlastUnit(new CoffeeMachineEntity());

            return(steamBlastUnit.Execute(9, 100).IsSuccessful);
        }