Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit b5a916a

Browse files
committed
remove dep on SS.dll
1 parent 026ebd6 commit b5a916a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ServiceStack.OrmLite.Tests/OrmLiteExecFilterTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public override Task<T> Exec<T>(IDbConnection dbConn, Func<IDbCommand, Task<T>>
6363
var sql = dbConn.GetLastSql();
6464
if (sql == "exec sp_name @firstName, @age")
6565
{
66-
return TaskExt.AsTaskResult((T)(object)new Person { FirstName = "Mocked" });
66+
var tcs = new TaskCompletionSource<T>();
67+
tcs.SetResult((T)(object)new Person { FirstName = "Mocked" });
68+
return tcs.Task;
6769
}
6870
throw;
6971
}

0 commit comments

Comments
 (0)