private void CreateNewMigrationButton_Click(object sender, EventArgs e) { InputBox.InputBoxResult result = InputBox.Show("Please enter a description for the Migration.", "Migration Description", "", null); if (result.OK) { string newFile = Migration.CreateMigrationFile(MigrationFolderTextBox.Text, MigrationTableTextBox.Text, result.Text); AddResult("Migration file created at '" + newFile + "'"); } }
public void CreateMigrationFile() { string migrationFolder = Path.GetTempPath(); Console.WriteLine(migrationFolder); string newFile = Migration.CreateMigrationFile(migrationFolder, "NUnitTest"); Assert.IsTrue(File.Exists(newFile)); }