Пример #1
0
        public MainWindow()
        {
            var masterContainer = new MasterContainer();

            _facade = masterContainer.Facade;
            InitializeComponent();
        }
Пример #2
0
        public MasterContainer()
        {
            var codeGenerationRepository = new CodeGenerationRepository(
                new DatabaseTableInfoRepository(),
                new DataTransferObjectGenerator(),
                new HackyGatewayBaseObjectGenerator(),
                new HackyGatewayGenerator(new SqlGenerator()),
                new SqlGenerator());
            var fileSystemCodeExporter = new FileSystemCodeExporter();

            Facade = new GenerationFacade(codeGenerationRepository, fileSystemCodeExporter);
        }