コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 public void Setup()
 {
     fixture   = new AggregateFixture(Guid.NewGuid().ToString());
     viewingId = new ViewingId(Guid.NewGuid().ToString(), fixture.dateOfViewing, fixture.cinemaId);
     fixture.AddViewingAndSeatCreationEvents(viewingId, Capacity);
 }