Ejemplo n.º 1
0
        private void Compute()
        {
            if (!this.HasAllRequestedInputsForComputation())
            {
                return;
            }
            // ReSharper disable once PossibleInvalidOperationException
            this.price = PastaCalculator.Compute(this.flourPrice.Value, this.eggPrice.Value, this.flavorPrice.Value, this.sizePrice, this.packagingPrice);

            this.RaisePastaPriceChanged(this.price);
        }
Ejemplo n.º 2
0
        // pseudo computation logic
        private void Compute()
        {
            if (!this.HasAllRequestedInputsForComputation())
            {
                return;
            }

            this.price = PastaCalculator.Compute(this.flourPrice.Value, this.eggPrice.Value, this.flavorPrice.Value, this.sizePrice, this.packagingPrice);

            this.RaisePastaPriceChanged(this.price);
        }