public Either <string, TestsMatchResult> MatchTestRuns(Some <string> oldTestsRunUrl, Some <string> newTestsRunUrl)
        {
            Func <string, Either <string, Lst <TestBuildResult> > > getBuildTests = testsRunUrl =>
                                                                                    Uris.ParseUri(testsRunUrl).Bind(ParseBuildId).Bind(_buildTestsObtainer.GetBuildFailedTests);

            return(getBuildTests(oldTestsRunUrl)
                   .LiftM2(getBuildTests(newTestsRunUrl), _testResultMatcher.MatchTestRuns));
        }
Пример #2
0
 private Either <string, TeamCityConfig> CreateConfig(string url, string userName, string password)
 {
     return(Uris.ParseUri(url).Map(uri => new TeamCityConfig(uri, userName, password)));
 }