Пример #1
0
 private bool IsSellinLessThan6(Item item)
 {
     return item.SellIn < 6;
 }
Пример #2
0
 private bool IsSellinNegative(Item item)
 {
     return item.SellIn < 0;
 }
Пример #3
0
 private bool IsQualityLessThan50(Item item)
 {
     return item.Quality < 50;
 }
Пример #4
0
 private bool IsSellinLessThan11(Item item)
 {
     return item.SellIn < 11;
 }
Пример #5
0
 private void DecrementSelIn(Item item)
 {
     item.SellIn = item.SellIn - 1;
 }
Пример #6
0
 private void IncrementItemQuality(Item item)
 {
     item.Quality = item.Quality + 1;
 }
Пример #7
0
 private bool IsNotBrie(Item item)
 {
     return item.Name != _agedBrie;
 }
Пример #8
0
 private void DecrementItemQuality(Item item)
 {
     item.Quality = item.Quality - 1;
 }
Пример #9
0
 private bool IsitemHavingStandardAgeingRules(Item item)
 {
     return item.Name != _agedBrie && item.Name != _backstagePassesToATafkal80EtcConcert && item.Name != _conjuredItemName;
 }
Пример #10
0
 private bool IsNotBackStagePass(Item item)
 {
     return !IsBackStagePass(item);
 }
Пример #11
0
 private bool IsConjuredItem(Item item)
 {
     return item.Name.Equals(_conjuredItemName);
 }
Пример #12
0
 private bool IsBrie(Item item)
 {
     return !IsNotBrie(item);
 }
Пример #13
0
 private bool IsBackStagePass(Item item)
 {
     return item.Name == _backstagePassesToATafkal80EtcConcert;
 }
Пример #14
0
 private bool IsStandardAgeingRuleHavingQuality(Item item)
 {
     return IsitemHavingStandardAgeingRules(item) && DoesItemHaveAnyQuality(item) && IsNotSulfuras(item);
 }
Пример #15
0
 private bool IsNotConjuredItem(Item item)
 {
     return !IsConjuredItem(item);
 }
Пример #16
0
 private void SetItemQualityToZero(Item item)
 {
     item.Quality = item.Quality - item.Quality;
 }
Пример #17
0
 private bool IsNotStandardAgeingRuleHavingQuality(Item item)
 {
     return !IsStandardAgeingRuleHavingQuality(item);
 }
Пример #18
0
 private void DecrementItemQualityBy2(Item item)
 {
     item.Quality = item.Quality - 2;
 }
Пример #19
0
 private bool IsNotSulfuras(Item item)
 {
     return item.Name != _sulfurasHandOfRagnaros;
 }
Пример #20
0
 private bool DoesItemHaveAnyQuality(Item item)
 {
     return item.Quality > 0;
 }
Пример #21
0
 private bool HasQuality(Item item)
 {
     return item.Quality > 0;
 }