Esempio n. 1
0
        public void TemporalRecordersAreRegistered()
        {
            ITemporal temporalRecorder = Substitute.For <ITemporal>();

            AbacusWriter.Instance.AddRecord(temporalRecorder);
            Assert.IsNotEmpty(AbacusWriter.Instance.RegisteredTemporals);
        }
Esempio n. 2
0
 /// <summary>
 /// Registers a temporal recorder
 /// </summary>
 /// <param name="value">The temporal recorder</param>
 public void AddRecord(ITemporal value)
 {
     temporals.Add(value);
 }
Esempio n. 3
0
 public ITemporal subtractFrom(ITemporal temporal)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public ITemporal addTo(ITemporal temporal)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 ITemporal ITemporalAdjuster.adjustInto(ITemporal temporal)
 {
     return(TemporalHelper.adjustInto(this, temporal));
 }
Esempio n. 6
0
 long ITemporal.until(ITemporal endExclusive, ITemporalUnit unit)
 {
     return(TemporalHelper.until(this, endExclusive, unit));
 }
Esempio n. 7
0
 public abstract ITemporal adjustInto(ITemporal temporal);
Esempio n. 8
0
 public ITemporal subtractFrom(ITemporal temporal)
 {
     return(((ITemporal)temporal).minus(this));
 }
Esempio n. 9
0
 public abstract long until(ITemporal endExclusive, ITemporalUnit unit);
Esempio n. 10
0
 public static ITemporal adjustInto(ITemporalHelper me, ITemporal temporal)
 {
     throw new NotImplementedException();
 }
Esempio n. 11
0
 public ITemporal addTo(ITemporal temporal)
 {
     return(((ITemporal)temporal).plus(this));
 }
Esempio n. 12
0
 public static long until(ITemporalHelper me, ITemporal endExclusive, ITemporalUnit unit)
 {
     return(unit.between(me, endExclusive));
 }
Esempio n. 13
0
 public override long until(ITemporal endExclusive, ITemporalUnit unit)
 {
     throw new NotImplementedException();
 }
Esempio n. 14
0
 public override ITemporal adjustInto(ITemporal temporal)
 {
     throw new NotImplementedException();
 }
Esempio n. 15
0
 bool ITemporalUnit.isSupportedBy(ITemporal temporal)
 {
     return(_supportedBy(temporal));
 }
Esempio n. 16
0
 long ITemporalUnit.between(ITemporal temporal1Inclusive, ITemporal temporal2Exclusive)
 {
     return(_between(temporal1Inclusive, temporal2Exclusive));
 }