Example #1
0
 private RedeemerOchestrator(IRedeemer redeemer)
 {
     RegisteredRedeemers = new List <IRedeemer>()
     {
         redeemer
     };
 }
Example #2
0
        public RedeemerOchestrator With(IRedeemer redeemer)
        {
            if (RegisteredRedeemers.Any(x => x.RedemptionType == redeemer.RedemptionType))
            {
                throw new Exception("This type of redemption has already been registered");
            }

            RegisteredRedeemers.Add(redeemer);

            return(this);
        }
Example #3
0
 public static RedeemerOchestrator CreateWith(IRedeemer redeemer)
 {
     return(new RedeemerOchestrator(redeemer));
 }