public void Should_Display_Error_Message_When_Create_Table_Button_Is_Pressed()
 {
     var tableDefinition = new TableDefinitionDialog(new SqlServer());
     var result = tableDefinition.Display("DefaultTableName", x => Maybe.Just(new Exception("Something really bad happended!")),
         x => Tuple.Create(Maybe.Just(new Exception("Something really bad happended!")), "SELECT * FROM Customers"));
     result.HasValue.ShouldBeFalse();
 }
 public void Should_Return_Ok_Result_When_Create_Table_Button_Is_Pressed()
 {
     var tableDefinition = new TableDefinitionDialog(new SqlServer());
     var result = tableDefinition.Display("DefaultTableName",
         x => Maybe.Nothing<Exception>(),
         x => Tuple.Create(Maybe.Nothing<Exception>(), "SELECT * FROM Customers"));
     result.HasValue.ShouldBeTrue();
 }