-
Notifications
You must be signed in to change notification settings - Fork 863
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
Protocol tests issue4 #3243
Protocol tests issue4 #3243
Conversation
/// Converts a DateTime to ISO8601 formatted string with milliseconds | ||
/// if they are not zero. | ||
/// </summary> | ||
public static string FromDateTimeToISO8601Minimal(DateTime value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does word "Minimal" have to do with including milliseconds? Shouldn't this be FromDateTimeToISO8601WithMs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will use minimal ms length. Meaning if there are ms != 000
it will include it else it won't. I am open to other names but the above suggestion isn't completely correct as it may not have ms. We also already have a with and without ms method but not a smart one that includes ms if not 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that is hard to name. Maybe FromDateTimeToISO8601WithOptionalMs
? Either way it is going to come down to the docs which you do have. I'll approve the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to the new suggested method name FromDateTimeToISO8601WithOptionalMs
as it does make it clearer and is accurate.
Not related, but I think we can check the "I have added test to cover my changes" for each issue, since we do have protocol tests related to each issue we are fixing. |
Description
This PR fixes DOTNET-7357 issue 4.
Issue 4 Rest-Json Protocol : Incorrectly marshalling dateTimes in the URL.
MERGE into
protocol-tests
feature branch onlyBuilds on prior PR: #3242
Merge order: 2
Ticket: DOTNET-7357
Motivation and Context
Testing
N/A - the test cases are the protocol tests. A final dry-run will be done on the
protocol-tests
feature branch once everything is merged into the feature branch.Screenshots (if appropriate)
Types of changes
Checklist
License