Esempio n. 1
0
        public void SimpleQuery_Properties_Check()
        {
            var testable = new SimpleSingleQuery();

            _ = testable.SqlStatement.Should().Be("SELECT Id FROM Table WHERE Id = @Id");
            _ = testable.Parameters.Should().Be(new { Id = 12 });
            _ = RemoveNewLine(testable.RealSqlStatement).Should().Be("DECLARE @Id INT = 12;SELECT Id FROM Table WHERE Id = @Id");
        }
Esempio n. 2
0
        public void ToString_Shows_Query()
        {
            var testable = new SimpleSingleQuery();

            testable.ToString().Should().Be("SELECT Id FROM Table WHERE Id = @Id");
        }