Esempio n. 1
0
 public override int CompareTo(IResponseAction other)
 {
     if (other is PreviousPageResponseAction)
         return 1;
     else
         return 0;
 }
 public override int CompareTo(IResponseAction other)
 {
     if (other is NextPageResponseAction)
         return -1;
     else
         return 0;
 }
Esempio n. 3
0
 public override int CompareTo(IResponseAction other)
 {
     if (other is PreviousPageResponseAction)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
 public override int CompareTo(IResponseAction other)
 {
     if (other is NextPageResponseAction)
     {
         return(-1);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 5
0
 public abstract int CompareTo(IResponseAction other);
Esempio n. 6
0
 public bool IsThisPrimary(IResponseAction other) => false;
Esempio n. 7
0
 public StrategyResponseAction(IResponseAction nextAction) => _nextAction = nextAction;
Esempio n. 8
0
 public FizzResponseAction(IResponseAction nextAction) => _nextAction = nextAction;
Esempio n. 9
0
 public void AddResponseAction(IResponseAction responseAction)
 {
     _responseActions.Add(responseAction);
 }
Esempio n. 10
0
 public FizzBuzz(Int current, IResponseAction responseAction)
 {
     _current        = current;
     _responseAction = responseAction;
 }
Esempio n. 11
0
 public abstract int CompareTo(IResponseAction other);
Esempio n. 12
0
 public bool IsThisPrimary(IResponseAction other) => false;