示例#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_ParseRawInput_ShouldReturnListOfDependencies()
        {
            var result = _fakeService.ParseRawInput(_rawInputStringValid);

            Assert.IsTrue(result.OrderBy(x => x.Name).Select(x => x.Name).SequenceEqual(_resolvedInputInvalid.Select(x => x.Name)));
        }