示例#1
0
 public ITieredDiscountStrategyBuilder_WhereOrBuild GetDiscountOf(double percent)
 {
     _tierUnderConstruction.DiscountPercentage = percent;
     discountTiers.Add(_tierUnderConstruction);
     _tierUnderConstruction = null;
     return(this);
 }
		public ITieredDiscountStrategyBuilder_WhereOrBuild GetDiscountOf( double percent )
		{
			_tierUnderConstruction.DiscountPercentage = percent;
			discountTiers.Add( _tierUnderConstruction );
			_tierUnderConstruction = null;
			return this;
		}
示例#3
0
 public ITieredDiscountStrategyBuilder_Then OrdersGreaterThanOrEqualTo(double amount)
 {
     _tierUnderConstruction = new DiscountTier
     {
         LowestQualifyingAmount = amount
     };
     return(this);
 }
		public ITieredDiscountStrategyBuilder_Then OrdersGreaterThanOrEqualTo( double amount )
		{
			_tierUnderConstruction = new DiscountTier
			                         	{
			                         			LowestQualifyingAmount = amount
			                         	};
			return this;
		}