using Dapper;
using FluentAssertions;
[Fact]
public void MyTest()
{
var queryResults = connection
.Query("SELECT TOP 1 * FROM Locations;");
var firstLocation = queryResults.ToList()[0];
// Regarding extension methods (FluentAssertions) on dynamic data:
// https://github.com/fluentassertions/fluentassertions/issues/234
((object)firstLocation.LocationName).Should().Be("Hello World");
((object)firstLocation.Location_id).Should().Be("001");
}
using Dapper;
using FluentAssertions;
[Fact]
public void MyTest()
{
var queryResults = connection
.Query("SELECT TOP 1 * FROM Locations;");
var firstLocation = queryResults.ToList()[0];
// Regarding extension methods (FluentAssertions) on dynamic data:
// https://github.com/fluentassertions/fluentassertions/issues/234
((object)firstLocation.LocationName).Should().Be("Hello World");
((object)firstLocation.Location_id).Should().Be("001");
}