public void Setup() { fixture = new AggregateFixture(Guid.NewGuid().ToString()); viewingId = new ViewingId(Guid.NewGuid().ToString(), fixture.dateOfViewing, fixture.cinemaId); fixture.AddViewingAndSeatCreationEvents(viewingId, Capacity); for (ushort u = 0; u < Capacity; u++) { fixture.AddSeatReservationEvent(viewingId, u); } }
public void Setup() { var flagType = typeof(IFlagForApplier); var openApplierType = typeof(TestBlankApplier <>); var appliers = new List <object>(); for (int i = 0; i < Appliers; i++) { var stubClass = StateTypeEmitter.EmitType(flagType, new OwnedStateClassEmitter(), flagType.Name + i.ToString()); var constructedApplierType = openApplierType.MakeGenericType(stubClass); appliers.Add(Activator.CreateInstance(constructedApplierType)); } fixture = new AggregateFixture(Guid.NewGuid().ToString(), appliers.ToArray()); for (int i = 0; i < Events; i++) { fixture.AddCinemaCreationEvent(); } }
public void Setup() { fixture = new AggregateFixture(Guid.NewGuid().ToString()); viewingId = new ViewingId(Guid.NewGuid().ToString(), fixture.dateOfViewing, fixture.cinemaId); fixture.AddViewingAndSeatCreationEvents(viewingId, Capacity); }