Inheritance: NotificationService.EventInfoBase
コード例 #1
0
 public void SetupMoqs()
 {
     @event = new OrderPlaced(42);
     _notificationEmailDescriber = new NotificationEmailDescriber();
 }
コード例 #2
0
        private string Describe(OrderPlaced @event)
        {
            var order = _orderRepository.GetOrder(@event.OrderId);

            return string.Format(EventDescriptionResources.OrderPlaced, order.CreatedOnDateTime.Date, order.Header,
                order.Email, order.Description);
        }