public void SetUp() { mocks = new MockRepository(); scriptFile = mocks.DynamicMock <IScriptFile>(); fileSystem = mocks.DynamicMock <IFileSystem>(); executor = new SqlServerBulkXmlExecutor(); executor.FileSystem = fileSystem; }
public void ShouldLoadCustomerXmlToTable() { IDatabase db = DatabaseConnectionFactory.CreateDbConnection(connSettings); ITable table = db.Tables["Customer"]; Assert.IsNotNull(table, "Could not get table from database"); executor = new SqlServerBulkXmlExecutor(); executor.LoadTable(table, customerXmlPath); // we didn't throw, that's pretty good... ;-) }