There’s a small mistake in the Getting Stuck in With Code - API Layer section:
To get started, we need to create a new folder within our Timesheet.Test project entitled API and a file called AuthDBTest.cs inside our new folder. Once the file is created we want to add in the following:
it should read “a file called AuthApiTest.cs” instead
2 Likes
Further below there is a line
body() - This is where we pass the authPayload object we created earlier
but I believe the object in the example is called just login, not authPayload
1 Like
Hi,
Good spots! You are correct and we’ll get updates into those lessons shortly.
2 Likes
And in the last paragraph:
We can test that the check works correctly by right clicking on the code and choosing the option to run the check (or running mvn clean test), which should produce a passing unit check.
Maven mentioned - but this is the C# course.
I also just noticed that many other method names were seemingly copied from the Java course because they’re lowercase or just refer to Java counterparts.
Like driver.close() should be _webDriver.Close() and assertEquals should be something from Assert.That(title, Is.EqualTo("Projects"))
Clearly a few copy and paste errors have slipped through. Sorry for that. I’ll take a bit of a closer look and clean up any errors.