You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test]
public void QuerySingleOrDefaultAsyncGuidGenericUsingDbConnectionInterface()
{
var connection = new Mock<IDbConnection>();
var expected = Guid.Parse("6e4655a7-de30-4bf7-ab86-21509d363104");
connection.SetupDapperAsync(c => c.QuerySingleOrDefaultAsync<Guid>(It.IsAny<string>(), null, null, null, null))
.ReturnsAsync(expected);
var actual = connection.Object.QuerySingleOrDefaultAsync<Guid>("").GetAwaiter().GetResult();
Assert.AreEqual(actual, expected);
}
If the type is not GUID it works fine, but if it is GUID it fails
The text was updated successfully, but these errors were encountered:
Here is the complete test method itself
If the type is not GUID it works fine, but if it is GUID it fails
The text was updated successfully, but these errors were encountered: