Esempio n. 1
0
 public SecurityGenerator(IConfiguration configuration, ITemplateEngine templateEngine, IProjectFileManager projectFileManager, IDepencyInjectionManager depencyInjectionManager, IFileSystem fileSystem, IWebConfigHelper webConfigHelper)
     : base(command, description)
 {
     this.configuration = configuration;
     this.templateEngine = templateEngine;
     this.projectFileManager = projectFileManager;
     this.depencyInjectionManager = depencyInjectionManager;
     this.fileSystem = fileSystem;
     this.webConfigHelper = webConfigHelper;
 }
Esempio n. 2
0
        public void SetUp()
        {
            configurationMock = MockRepository.GenerateMock<IConfiguration>();
            projectFileManagerMock = MockRepository.GenerateMock<IProjectFileManager>();
            depencyInjectionManagerMock = MockRepository.GenerateMock<IDepencyInjectionManager>();
            fileSystemMock = MockRepository.GenerateMock<IFileSystem>();

            var templateEngine = new TemplateEngine(fileSystemMock);
            serviceGenerator = new ServiceGenerator(templateEngine, configurationMock, projectFileManagerMock, depencyInjectionManagerMock);
        }
Esempio n. 3
0
 public ServiceGenerator(ITemplateEngine templateEngine, 
     IConfiguration configuration,
     IProjectFileManager projectFileManager, IDepencyInjectionManager depencyInjectionManager)
     : base(command, description)
 {
     this.templateEngine = templateEngine;
     this.configuration = configuration;
     this.projectFileManager = projectFileManager;
     this.depencyInjectionManager = depencyInjectionManager;
 }
        public void SetUp()
        {
            entityManagerMock = MockRepository.GenerateMock<IEntityManager>();
            configurationMock = MockRepository.GenerateMock<IConfiguration>();
            projectFileManagerMock = MockRepository.GenerateMock<IProjectFileManager>();
            depencyInjectionManagerMock = MockRepository.GenerateMock<IDepencyInjectionManager>();
            fileSystemMock = MockRepository.GenerateMock<IFileSystem>();

            templateEngineMock = new TemplateEngine(fileSystemMock);

            repositoryGenerator = new RepositoryGenerator(entityManagerMock, templateEngineMock, configurationMock, projectFileManagerMock, depencyInjectionManagerMock);
        }
Esempio n. 5
0
        public void SetUp()
        {
            configurationMock = MockRepository.GenerateMock<IConfiguration>();
            projectFileManagerMock = MockRepository.GenerateMock<IProjectFileManager>();
            depencyInjectionManagerMock = MockRepository.GenerateMock<IDepencyInjectionManager>();
            fileSystemMock = MockRepository.GenerateMock<IFileSystem>();
            webConfigHelperMock = MockRepository.GenerateMock<IWebConfigHelper>();

            var templateEngine = new TemplateEngine(fileSystemMock);
            securityGenerator = new SecurityGenerator(configurationMock, templateEngine, projectFileManagerMock,
                                                      depencyInjectionManagerMock, fileSystemMock, webConfigHelperMock);
        }
Esempio n. 6
0
        public void SetUp()
        {
            configurationMock = MockRepository.GenerateMock<IConfiguration>();
            projectFileManagerMock = MockRepository.GenerateMock<IProjectFileManager>();
            depencyInjectionManagerMock = MockRepository.GenerateMock<IDepencyInjectionManager>();
            fileSystemMock = MockRepository.GenerateMock<IFileSystem>();
            entityManagerMock = MockRepository.GenerateMock<IEntityManager>();
            autoMapperHelperMock = MockRepository.GenerateMock<IAutoMapperHelper>();

            var templateEngine = new TemplateEngine(fileSystemMock);
            uiGenerator = new UiGenerator(entityManagerMock, templateEngine, configurationMock, projectFileManagerMock, depencyInjectionManagerMock, autoMapperHelperMock, fileSystemMock);
        }
Esempio n. 7
0
 public RepositoryGenerator(IEntityManager entityManager, 
     ITemplateEngine templateEngine, 
     IConfiguration configuration,
     IProjectFileManager projectFileManager,
     IDepencyInjectionManager depencyInjectionManager)
     : base(command, description)
 {
     this.entityManager = entityManager;
     this.templateEngine = templateEngine;
     this.configuration = configuration;
     this.projectFileManager = projectFileManager;
     this.depencyInjectionManager = depencyInjectionManager;
 }
Esempio n. 8
0
 public UiGenerator(IEntityManager entityManager, 
     ITemplateEngine templateEngine, 
     IConfiguration configuration,
     IProjectFileManager projectFileManager, 
     IDepencyInjectionManager depencyInjectionManager,
     IAutoMapperHelper autoMapperHelper,
     IFileSystem fileSystem)
     : base(command, description)
 {
     this.entityManager = entityManager;
     this.templateEngine = templateEngine;
     this.configuration = configuration;
     this.projectFileManager = projectFileManager;
     this.depencyInjectionManager = depencyInjectionManager;
     this.autoMapperHelper = autoMapperHelper;
     this.fileSystem = fileSystem;
 }