public void TestCloneWithRetainsNameAndSchema() { var sp = new StoredProcedure("test", "proc"); var toTest = sp.CloneWith(Mock.Of <IStoredProcedureParameter>()); AssertProcValues(toTest, typeof(StoredProcedure), "test", "proc"); }
public void TestCloneWithTransformerRetainsNameAndSchema() { var sp = new StoredProcedure("test", "proc"); var toTest = sp.CloneWith(new Mock <IDataTransformer>().Object); AssertProcValues(toTest, typeof(StoredProcedure), "test", "proc"); }
public void TestCloneWithTransformerDoesNotAlterOriginalProcedure() { var sp = new StoredProcedure("test", "proc"); var toTest = sp.CloneWith(Mock.Of <IDataTransformer>()); AssertProcValues(sp, typeof(StoredProcedure), "test", "proc"); }