Exemple #1
0
 public void Setup()
 {
     _reference1 = new MigrationReference(1, "A", "001_a.cs");
     _reference2 = new MigrationReference(2, "B", "002_b.cs");
     _mocks      = new MockRepository();
 }
 public MigrationStep(MigrationReference migrationReference, bool reverting)
 {
   _migrationReference = migrationReference;
   _reverting = reverting;
 }
                public IDatabaseMigration CreateMigration(MigrationReference migrationReference)
                {
                    if (!kernel.HasComponent(migrationReference.Reference))
                    {
                        kernel.AddComponent(migrationReference.Reference.FullName,
                                            migrationReference.Reference, LifestyleType.Transient);
                    }

                    return (IDatabaseMigration)kernel.Resolve(migrationReference.Reference);
                }
 public IMigrationFactory ChooseFactory(MigrationReference migrationReference)
 {
     return factory;
 }
 public MigrationStep(MigrationReference migrationReference, bool reverting)
 {
     _migrationReference = migrationReference;
     _reverting          = reverting;
 }
 public void Setup()
 {
     _reference1 = new MigrationReference(1, "A", "001_a.cs");
       _reference2 = new MigrationReference(2, "B", "002_b.cs");
       _mocks = new MockRepository();
 }