Beispiel #1
0
 public void When_calling_CreateSqlSelectStatementFromDto_with_a_test_dto_it_will_generate_the_expected_sql_select_statement_case_1()
 {
     Assert.That(_sqlSelectBuilder.CreateSqlSelectStatementFromDto <TestDtoCase1>(),
                 Is.EqualTo("SELECT Column1,Column2,Column3 FROM TestDtoCase1;"));
 }
     When_calling_CreateSqlSelectStatementFromDto_with_a_test_dto_and_null_example_it_will_fall_back_to_select_witout_a_where_clause
     ()
 {
     Assert.That(_sqlSelectBuilder.CreateSqlSelectStatementFromDto<TestDtoCase1>(null),
                 Is.EqualTo("SELECT Column1,Column2,Column3 FROM TestDtoCase1;"));
 }