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