Esempio n. 1
0
 public void AddEventHandler([NotNull] IClockEvent clockEvent)
 {
     if (clockEvent == null)
     {
         throw new ArgumentNullException(nameof(clockEvent));
     }
     this._clockEvents.Add(clockEvent);
 }
Esempio n. 2
0
        private async Task <bool> AsynchronusC(IClockEvent clockEvent)
        {
            for (var i = 1; i < 11; i++)
            {
                clockEvent.ClockId = i;

                await Task.Delay(100);

                Assert.Equal(i, clockEvent.ClockId);
            }

            return(true);
        }
Esempio n. 3
0
        private async Task <bool> AsynchronusE(Container container, IClockEvent clockEvent)
        {
            for (var i = 1; i < 11; i++)
            {
                var target = container.Get <IClockEvent>();

                target.ClockId = i * 7;

                await Task.Delay(100);

                clockEvent.ClockId *= 10;

                var target2 = container.Get <IClockEvent>();

                Assert.Equal(target.ClockId, target2.ClockId);
                Assert.Equal(clockEvent.ClockId, target2.ClockId);
            }

            return(true);
        }
Esempio n. 4
0
 public ParameterProfileTestClass3(IClockEvent clockEvent, IOrder order, ICubeTestParams cube)
     : base(clockEvent, order)
 {
     _cube = cube;
 }
Esempio n. 5
0
 public TestClass2(ICubeTestParams parameters, IClockEvent test1, IOrder persp)
     : this(test1, persp)
 {
     Params = parameters;
 }
Esempio n. 6
0
 public TestClass2(IOrder persp, ICubeTestParams parameters, IClockEvent test1, List <string> list)
     : this(persp, parameters, test1)
 {
     List = list;
 }
Esempio n. 7
0
 public TestClass2(IClockEvent test1, IOrder persp)
     : this(test1)
 {
     Order = persp;
 }
Esempio n. 8
0
 public TestClass2(IClockEvent test1)
 {
     Clock = test1;
 }
 public ParameterProfileTestClass1(IClockEvent clockEvent)
 {
     _clockEvent = clockEvent;
 }
Esempio n. 10
0
 public ParameterProfileTestClass2(IClockEvent clockEvent, IOrder order)
     : base(clockEvent)
 {
     _order = order;
 }
 public ParameterProfileTestClass4(IClockEvent clockEvent, IOrder order, ICubeTestParams cube, List <string> list)
     : base(clockEvent, order, cube)
 {
     _list = list;
 }