public void deferred_execution_on_execute() { var row = new Row(); row["locationIdentifier"] = "1"; row["serviceArea"] = null; row["locationDescription"] = "null"; row["locationUrl"] = "NULL"; row["locationLogoName"] = "redv5"; row["locationPhotoNames"] = "redv6"; row["keywords"] = "redv7"; var process = new ProcessRefactor(); var enumerable = process.Execute(row); var enumerator = enumerable.GetEnumerator(); while (enumerator.MoveNext()) { var sqlCommand = enumerator.Current; Assert.IsTrue(!string.IsNullOrEmpty(sqlCommand.CommandText)); } }
public void SetUp() { _id = 100; _data = new Row { {"logoName", "value1"}, {"photoName", "value2"}, {"sampleName", "value3"}, }; SUT = new PropertyTypeCommandBuilder(new DefaultPropertyTypeValuesProvider(), _id, _data); }