Ejemplo n.º 1
0
        public void Then_published_events_count_should_be_one()
        {
            PublishedEvents.Should().HaveCount(2);
            PublishedEvents.First().Should().BeOfType <MediaPlanCreated>();

            var theEvent = PublishedEvents.First().As <MediaPlanCreated>();

            theEvent.PlanNo.Should().Be(1);

            var budgetSet = PublishedEvents.ElementAt(1).As <BudgetForMediaPlanSet>();

            budgetSet.Budget.Should().Be(10000);
        }
Ejemplo n.º 2
0
 public void should_apply_free_shipping()
 {
     Assert.IsInstanceOf <FreeShippingApplied>(PublishedEvents.ElementAt(1));
 }