Skip to content

Instantly share code, notes, and snippets.

@pavsaund
Created October 19, 2016 11:42
Show Gist options
  • Save pavsaund/23b050a93781fe5c1af60e23e2af0211 to your computer and use it in GitHub Desktop.
Save pavsaund/23b050a93781fe5c1af60e23e2af0211 to your computer and use it in GitHub Desktop.
public class when_adding_a_cart_item
{
Because customer_service_and_our_customer_journey_tracker_needs_trace_info
= () => shoppingCart.AddCartItem(cartItem);
It sends_the_correct_message_to_the_event_aggregator
= () => MessageHandler.Messages.ShouldContain(message =>
message.type == CustomerActiom.CartItemAddedToCart);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment