コード例 #1
0
 public Item(
     IExpirationStrategy expirationStrategy,
     IQualityBehavior qualityBehavior,
     Range qualityRange = null)
 {
     this.expirationStrategy = expirationStrategy;
     this.qualityBehavior    = qualityBehavior;
     this.qualityRange       = qualityRange ?? new Range(0, 50);
 }
コード例 #2
0
 public Item(IQualityBehavior qualityBehavior)
     : this(new ExpiringStartegy(), qualityBehavior)
 {
 }