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); }
// 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); }