Пример #1
0
 static Environment()
 {
     Logger = new ConsoleWindowLogger();
     CommandBuilders = new Dictionary<string, IShellCommand>();
     SystemCommands = new Dictionary<string, ISystemCommand>();
     ScriptRecorder = new ScriptRecorder();
     RegsiterSystemCommands();
     RegsiterCommandBuilders();
 }
 static Environment()
 {
     DataStore = new InMemoryDataStore();
     Logger = new ConsoleWindowLogger();
     CommandBuilders = new Dictionary<string, ICommandBuilder>();
     SystemCommands = new Dictionary<string, ISystemCommand>();
     ScriptRecorder = new ScriptRecorder();
     RegsiterSystemCommands();
     RegsiterCommandBuilders();
 }
 static Environment()
 {
     CommandBuilders = new Dictionary<string, ICommandBuilder>();
     SystemCommands = new Dictionary<string, ISystemCommand>();
     ConsoleViews = new Dictionary<string, IConsoleView>();
     ScriptRecorder = new ScriptRecorder();
     RegsiterSystemCommands();
     RegsiterCommandBuilders();
     RegisterViews();
     ContextFactory = new ContextFactory<AsbaContext>("AsbaBank");
     currentUserSession = new CurrentUserSession(new GenericIdentity(System.Environment.UserDomainName));
 }
        static Environment()
        {
            Logger = new ConsoleWindowLogger();
            CommandBuilders = new Dictionary<string, ICommandBuilder>();
            SystemCommands = new Dictionary<string, ISystemCommand>();
            ScriptRecorder = new ScriptRecorder();
            RegsiterSystemCommands();
            RegsiterCommandBuilders();

            Database.SetInitializer(new AsbaContextInitializer());
            ContextFactory = new ContextFactory<AsbaContext>("AsbaBank");
        }