Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional constructor that takes raw LUIS endpoint #1378

Merged
merged 2 commits into from
Feb 16, 2019

Conversation

johnataylor
Copy link
Member

This is the C# implementation for microsoft/botframework-sdk#5255

The only thing to note here is that the JavaScript is slightly different because the C# has this additional LuisApplication class. Because the C# has that class I added the extra constructor on that. (Making sure to wire all the constructir overloads through the same code path.)

@stevengum is planning to do the JavaScript.

@johnataylor johnataylor added the blocked Current progress is blocked on something else. label Feb 13, 2019
@coveralls
Copy link
Collaborator

coveralls commented Feb 13, 2019

Pull Request Test Coverage Report for Build 49097

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 32 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.2%) to 74.954%

Files with Coverage Reduction New Missed Lines %
/libraries/Microsoft.Bot.Builder.AI.LUIS/LuisApplication.cs 2 95.35%
/libraries/Microsoft.Bot.Builder.AI.LUIS/LuisRecognizer.cs 30 85.11%
Totals Coverage Status
Change from base Build 49005: 0.2%
Covered Lines: 4046
Relevant Lines: 5398

💛 - Coveralls

Copy link
Member

@stevengum stevengum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there are some typos in the test names for LuisApplication, but otherwise it looks good.

Assert.AreEqual(service.AppId, model.ApplicationId);
Assert.AreEqual(service.SubscriptionKey, model.EndpointKey);
Assert.AreEqual(service.GetEndpoint(), model.Endpoint);
}

[TestMethod]
public void ListApplicationFromLuisEndpoint()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be LuisApplicationFromLuisEndpoint?

}

[TestMethod]
public void ListApplicationFromLuisEndpointBadArguments()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be LuisApplicationsFromLuisEndpointBadArguments? More precisely, shouldn't be a negative?

It's only a test name, but it shouldn't imply that invalid arguments will generate a valid LuisApplication instance.

@johnataylor
Copy link
Member Author

@cleemullins and @stevengum
I just merged this now we have the JavaScript in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Current progress is blocked on something else.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants