Ejemplo n.º 1
0
        private static CreditCardSubscription CreateSut()
        {
            var id   = CreditCardSubscriptionId.NewId();
            var name = new CreditCardSubscriptionName("Silver");

            return(new CreditCardSubscription(id, DateTimeOffset.Now, name));
        }
Ejemplo n.º 2
0
 public CreditCardSubscriptionCreated(CreditCardSubscriptionId aggregateId, DateTimeOffset occurred,
                                      CreditCardSubscriptionName name) : base(aggregateId, occurred)
 {
     Name = name;
 }