Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-E-angelo committed Mar 16, 2024
1 parent 513be49 commit 25cb1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected EvaluateToSingle(IReading<None, T> reading) : base(reading) {}
public class EvaluateToSingle<TIn, T> : Evaluate<TIn, T, T>
{
public EvaluateToSingle(IScopes scopes, Expression<Func<DbContext, TIn, IQueryable<T>>> expression)
: this(new Reading<TIn, T>(scopes, (d, @in) => expression.Invoke(d, @in).Take(1))) {}
: this(new Reading<TIn, T>(scopes, (d, @in) => expression.Invoke(d, @in).Take(2))) {}

protected EvaluateToSingle(IReading<TIn, T> reading) : base(reading, ToSingle<T>.Default) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public EvaluateToSingleOrDefault(IReading<None, T> reading) : base(reading) {}
public class EvaluateToSingleOrDefault<TIn, T> : Evaluate<TIn, T, T?>
{
public EvaluateToSingleOrDefault(IScopes scopes, Expression<Func<DbContext, TIn, IQueryable<T>>> expression)
: this(new Reading<TIn, T>(scopes, (d, @in) => expression.Invoke(d, @in).Take(1))) {}
: this(new Reading<TIn, T>(scopes, (d, @in) => expression.Invoke(d, @in).Take(2))) {}

protected EvaluateToSingleOrDefault(IReading<TIn, T> reading) : base(reading, ToSingleOrDefault<T>.Default) {}
}

0 comments on commit 25cb1ba

Please sign in to comment.