public void AddEventHandler([NotNull] IClockEvent clockEvent) { if (clockEvent == null) { throw new ArgumentNullException(nameof(clockEvent)); } this._clockEvents.Add(clockEvent); }
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); }
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); }
public ParameterProfileTestClass3(IClockEvent clockEvent, IOrder order, ICubeTestParams cube) : base(clockEvent, order) { _cube = cube; }
public TestClass2(ICubeTestParams parameters, IClockEvent test1, IOrder persp) : this(test1, persp) { Params = parameters; }
public TestClass2(IOrder persp, ICubeTestParams parameters, IClockEvent test1, List <string> list) : this(persp, parameters, test1) { List = list; }
public TestClass2(IClockEvent test1, IOrder persp) : this(test1) { Order = persp; }
public TestClass2(IClockEvent test1) { Clock = test1; }
public ParameterProfileTestClass1(IClockEvent clockEvent) { _clockEvent = clockEvent; }
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; }