Beispiel #1
0
        public void Foo()
        {
            var id      = Guid.NewGuid();
            var foocmd  = new FooCommand(id);
            var barcmd  = new BarCommand(id);
            var barcmd2 = new BarCommand(id);

            var events = new IEvent[] {
                new FooEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", foocmd)),
                new FooEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", foocmd)),
                new BarEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", barcmd, DateTime.UtcNow.AddHours(1).Ticks)),
                new BarEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", barcmd, DateTime.UtcNow.AddHours(1).Ticks)),
                new BarEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", barcmd2, DateTime.UtcNow.AddHours(1).Ticks)),
                new BarEvent(Guid.NewGuid())
                .Tap(x => x.Meta.AddMetaData(1, "Test", "Test", barcmd2, DateTime.UtcNow.AddHours(1).Ticks)),
            };

            this.output.WriteLine(events.Draw());
            Assert.True(false, "Command not in line");
        }
Beispiel #2
0
 public void Draw(System.Drawing.Graphics g, System.Drawing.Pen p)
 {
     currentState.Draw(g, p);
 }