public void TemporalRecordersAreRegistered() { ITemporal temporalRecorder = Substitute.For <ITemporal>(); AbacusWriter.Instance.AddRecord(temporalRecorder); Assert.IsNotEmpty(AbacusWriter.Instance.RegisteredTemporals); }
/// <summary> /// Registers a temporal recorder /// </summary> /// <param name="value">The temporal recorder</param> public void AddRecord(ITemporal value) { temporals.Add(value); }
public ITemporal subtractFrom(ITemporal temporal) { throw new NotImplementedException(); }
public ITemporal addTo(ITemporal temporal) { throw new NotImplementedException(); }
ITemporal ITemporalAdjuster.adjustInto(ITemporal temporal) { return(TemporalHelper.adjustInto(this, temporal)); }
long ITemporal.until(ITemporal endExclusive, ITemporalUnit unit) { return(TemporalHelper.until(this, endExclusive, unit)); }
public abstract ITemporal adjustInto(ITemporal temporal);
public ITemporal subtractFrom(ITemporal temporal) { return(((ITemporal)temporal).minus(this)); }
public abstract long until(ITemporal endExclusive, ITemporalUnit unit);
public static ITemporal adjustInto(ITemporalHelper me, ITemporal temporal) { throw new NotImplementedException(); }
public ITemporal addTo(ITemporal temporal) { return(((ITemporal)temporal).plus(this)); }
public static long until(ITemporalHelper me, ITemporal endExclusive, ITemporalUnit unit) { return(unit.between(me, endExclusive)); }
public override long until(ITemporal endExclusive, ITemporalUnit unit) { throw new NotImplementedException(); }
public override ITemporal adjustInto(ITemporal temporal) { throw new NotImplementedException(); }
bool ITemporalUnit.isSupportedBy(ITemporal temporal) { return(_supportedBy(temporal)); }
long ITemporalUnit.between(ITemporal temporal1Inclusive, ITemporal temporal2Exclusive) { return(_between(temporal1Inclusive, temporal2Exclusive)); }