Exemplo n.º 1
0
        public DeploymentBundleHandlerTests()
        {
            _session = new OrchestratorSession();
            var awsResourceQueryer = new TestToolAWSResourceQueryer();
            var interactiveService = new TestToolOrchestratorInteractiveService();

            _commandLineWrapper      = new TestToolCommandLineWrapper();
            _directoryManager        = new TestDirectoryManager();
            _zipFileManager          = new TestZipFileManager();
            _deploymentBundleHandler = new DeploymentBundleHandler(_session, _commandLineWrapper, awsResourceQueryer, interactiveService, _directoryManager, _zipFileManager);
        }
        public DeploymentBundleHandlerTests()
        {
            var awsResourceQueryer = new TestToolAWSResourceQueryer();
            var interactiveService = new TestToolOrchestratorInteractiveService();
            var zipFileManager     = new TestZipFileManager();

            _commandLineWrapper      = new TestToolCommandLineWrapper();
            _directoryManager        = new TestDirectoryManager();
            _projectDefinitionParser = new ProjectDefinitionParser(new FileManager(), new DirectoryManager());

            _deploymentBundleHandler = new DeploymentBundleHandler(_commandLineWrapper, awsResourceQueryer, interactiveService, _directoryManager, zipFileManager);

            _recipeDefinition = new Mock <RecipeDefinition>(
                It.IsAny <string>(),
                It.IsAny <string>(),
                It.IsAny <string>(),
                It.IsAny <DeploymentTypes>(),
                It.IsAny <DeploymentBundleTypes>(),
                It.IsAny <string>(),
                It.IsAny <string>(),
                It.IsAny <string>(),
                It.IsAny <string>(),
                It.IsAny <string>()).Object;
        }