public void Should_be_able_to_execute_kata()
        {
            IKata sut = CreateSut();

            SearchingAlgorithmRequest request =
                SearchingAlgorithmRequestMockFactory.RomaniaCities();

            var actual = sut.Execute(request) as SearchingAlgorithmResponse;

            SearchingAlgorithmResponse expected =
                SearchingAlgorithmResponseMockFactory.RomaniaCitiesUCS();

            Assert.Equal(expected.Message, actual.Message);
        }
        public IKataResponse Execute(IKataRequest kataRequest)
        {
            var request = kataRequest as SearchingAlgorithmRequest;

            SearchingAlgorithmResponse response =
                Search(request.StartNode, request.TargetNode);

            if (response is null)
            {
                throw new UnableToGetSearchingResponseException(request);
            }

            return(response);
        }