Exemple #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);
        }
 public void And_no_events_should_be_published()
 {
     PublishedEvents.Should().BeEmpty();
 }
 public void Then_a_roast_schedule_is_created()
 {
     PublishedEvents.Should().NotBeNullOrEmpty();
     PublishedEvents.Last().Should().BeOfType <RoastScheduleCreatedEvent>();
     PublishedEvents.Last().As <RoastScheduleCreatedEvent>().RoastScheduleId.Should().Be(_roastScheduleId);
 }
Exemple #4
0
 public void Then_published_events_count_should_be_one()
 {
     PublishedEvents.Should().HaveCount(1);
 }