Пример #1
0
        public void SetUp()
        {
            _fileSystem = new MockFileSystem(new Dictionary <string, MockFileData>
            {
                { @"C:\build\MySolution.sln", new MockFileData(string.Empty) }
            });

            _repositoryReader = new Mock <IRepositoryReader>();
            _analyzer         = new Mock <IMSBuildSolutionAnalyzer>();
            var container = ContainerHelper.ConfigureContainer()
                            .WithRegistrations(c =>
            {
                c.RegisterInstance <IFileSystem>(_fileSystem);
                c.RegisterInstance(_repositoryReader.Object);
                c.RegisterInstance(_analyzer.Object);
            })
                            .Build();

            _args = new string[]
            {
                "--solution", @"C:\build\MySolution.sln",
                "--from-commit", "commit"
            };
            _command = container.Resolve <ArbiterRootCommand>();
            _console = container.Resolve <IConsole>();
        }
Пример #2
0
        public void SetUp()
        {
            var container = ContainerHelper.ConfigureContainer().Build();

            _command = container.Resolve <CleanCommand>();
            _locator = container.Resolve <IMSBuildLocator>();

            _locator.RegisterDefaults();
        }
Пример #3
0
        public void SetUp()
        {
            new ArbiterMSBuildLocator().RegisterDefaults();

            var container = ContainerHelper.ConfigureContainer().WithRealFileSystem().Build();

            _command = container.Resolve <GraphCommand>();
            _console = container.Resolve <IConsole>();
        }
Пример #4
0
        public void SetUp()
        {
            // Ensure a clean working directory. Debugging could have left this dirty.
            var locator = new ArbiterMSBuildLocator();

            locator.RegisterDefaults();
            locator.Clean();

            var container = ContainerHelper.ConfigureContainer().WithRealFileSystem().Build();

            _analyzer = container.Resolve <MSBuildSolutionAnalyzer>();
        }
        public void SetUp()
        {
            var container = ContainerHelper.ConfigureContainer().Build();

            _analyzer = container.Resolve <MSBuildSolutionAnalyzer>();
        }