Beispiel #1
0
        public void GetCustomer(Guid id)
        {
            var customerEvents = new Application.GetCustomer().Execute(new GetCustomerById()
            {
                Id = id
            });

            foreach (var @event in customerEvents.Events)
            {
                Console.WriteLine(@event.ToString());
            }
        }
Beispiel #2
0
        public void GetDomainCustomer(Guid id)
        {
            var res = new Application.GetCustomer().Execute(id);

            Console.WriteLine(res.CreditCards.SingleOrDefault()?.CardHolder);
        }