Exemplo n.º 1
0
        public static void AbstractFactoryInTesting()
        {
            IDataBaseSetupFactory dbType = GetDataBaseType();
            var createTestData           = new SetupDataBaseFactory(dbType);

            createTestData.Run();

            //Direct creation example
            new SqlAccountsManager().CreateAccount();
        }
Exemplo n.º 2
0
 public SetupDataBaseFactory(IDataBaseSetupFactory factory)
 {
     this.factory = factory;
 }