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