public void TimeDiffMicroseconds() { TimeSpan time = stored.Add(TimeSpan.FromTicks(-10)); #if !EFOLD var q = this.Entities .Where(x => DbFunctions.DiffMicroseconds(time, x.Time) == 1); #else var q = this.Entities .Where(x => EntityFunctions.DiffMicroseconds(time, x.Time) == 1); #endif q.Should().NotBeEmpty(); }
public void DateTimeDiffMicroseconds() { DateTime date = stored.AddTicks(-10); #if !EFOLD var q = this.Entities .Where(x => DbFunctions.DiffMicroseconds(date, x.DateTime) == 1); #else var q = this.Entities .Where(x => EntityFunctions.DiffMicroseconds(date, x.DateTime) == 1); #endif q.Should().NotBeEmpty(); }