Exemple #1
0
        public IActionResult ResolveDependencies([FromBody] InputViewModel input)
        {
            var dependencies = _dependencyResolverService.ParseRawInput(input.Input);

            _dependencyResolverService.ResolveDependencies(dependencies);
            return(Ok(dependencies.Select(x => x.ToString())));
        }
        public void DependencyResolverService_ResolveDependencies_ShouldResolveDependencies()
        {
            _fakeService.ResolveDependencies(_resolvedInputValid);

            for (int i = 0; i < _resolvedDependencies.Count; i++)
            {
                Assert.IsTrue(_resolvedInputValid[i].ParsedDependencyList.OrderBy(x => x).SequenceEqual(_resolvedDependencies[i].OrderBy(x => x)));
            }
        }