Ejemplo 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;
 }
Ejemplo 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);
        }
Ejemplo 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;
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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;
 }
Ejemplo 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;
 }