예제 #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;
		}