public async Task should_delegate_to_find_results_with_expected_params() { var objectId = ObjectId.Parse(Id); var cursor = StubCursor <Course>(CourseCollectionName); var course = new Course(); StubSingleFoundResult(cursor, course); var response = await ExecuteEndpoint(_controller.GetById(Id)); AssertRepositoryWasQueriedById(objectId); response.Should().Be(course); }