Esempio n. 1
0
            public void ConcertIsPlannedWithIdAndValidCapacity()
            {
                var id = new ConcertId(Guid.NewGuid());

                new ConstructorScenarioFor <Concert>(() => Concert.Plan(id, 100)).
                Then(ConcertEvents.Planned(id)).
                Assert();
            }
Esempio n. 2
0
 public void PlanningConcertWithInvalidCapacityThrows()
 {
     new ConstructorScenarioFor <Concert>(() => Concert.Plan(new ConcertId(Guid.NewGuid()), -4)).
     AssertThrows(new ArgumentException("venueCapacity"));
 }