Beispiel #1
0
        public void NegotiateBrowseIssueParametersReturnsFailureForMissingProject(BrowseOptions options)
        {
            options.Project = "";
            var sut = new IssueParametersNegotiator();

            sut.NegotiateBrowseParameters(options, "").IsFailure.Should().BeTrue();
        }
Beispiel #2
0
        public void NegotiateBrowseIssueParametersCreatesParametersFromOptions(BrowseOptions options, string defaultProject)
        {
            var sut = new IssueParametersNegotiator();

            sut.NegotiateBrowseParameters(options, defaultProject).Value.Should().Match <BrowseParameters>(o =>
                                                                                                           o.IssueId == options.Id &&
                                                                                                           o.Project == options.Project);
        }
 public Result <BrowseParameters> NegotiateBrowseParameters(BrowseOptions options)
 {
     return(_issueParametersNegotiator.NegotiateBrowseParameters(options, _appSettings.DefaultProject));
 }