Esempio n. 1
0
 private RedeemerOchestrator(IRedeemer redeemer)
 {
     RegisteredRedeemers = new List <IRedeemer>()
     {
         redeemer
     };
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public static RedeemerOchestrator CreateWith(IRedeemer redeemer)
 {
     return(new RedeemerOchestrator(redeemer));
 }