Skip to content

Conversation

@amammay
Copy link
Contributor

@amammay amammay commented Jul 25, 2017

Updated unit testing in regards to the sleep api.

[TestFixture]
public class SleepTests
{
#region Success Test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aarondcoleman are you a fan of using regions to break apart sections of code or would you rather not have these? i included them since the file was starting to get pretty big.

Copy link
Contributor

Choose a reason for hiding this comment

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

@amammay Not a fan of the region personally. We probably need to look at refactoring the tests if the files are getting big

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understandable, i can remove the regions this evening, better off having things consistent also


var responseMessage = new Func<HttpResponseMessage>(() =>
{
return new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(content) };
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to remove the spaces; inconsistent with below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted

{
public enum SortEnum
{
Asc,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have these been made lowercase? This is not standard in naming of enum values, nor are the values used as the string representation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not really sure why i did this, will change it back.

public class Pagination
{
public string BeforeDate { get; set; }
public DateTime BeforeDate { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Do they always serialize / parse into DateTimes? As long as they do, this is a good change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like we are pretty consistent on the library level of parsing into a DateTime object. And after taking a peek at the web api reference it seems to be as a date time object as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool!

2. Revert Sort Enum back to proper casing.
@amammay
Copy link
Contributor Author

amammay commented Sep 5, 2017

@WestDiscGolf changes have been made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants