Пример #1
0
        public PackageValidatorTests()
        {
            _validationResults   = new List <ValidationResult>();
            _aggregateValidator  = new DummyAggregateValidator(_validationResults);
            _aggregateValidators = new[] { _aggregateValidator };

            _sourceRepositories = new ValidationSourceRepositories(
                Mock.Of <SourceRepository>(),
                Mock.Of <SourceRepository>());
        }
Пример #2
0
        public PackageValidatorTests()
        {
            _validationResults   = new List <ValidationResult>();
            _aggregateValidator  = new DummyAggregateValidator(_validationResults);
            _aggregateValidators = new[] { _aggregateValidator };

            _feedToSource = new Dictionary <FeedType, SourceRepository>()
            {
                { FeedType.HttpV2, Mock.Of <SourceRepository>() },
                { FeedType.HttpV3, Mock.Of <SourceRepository>() }
            };
        }