question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document advanced usage methods

See original GitHub issue

@asgerhallas’s comment on a recent StackOverflow answer made me realize that we nowhere document some of the advanced usages of FakeItEasy. We should. Unless we review the methods and decide to remove them.

In paricultar, I’m thinking of

  • Fake.ClearConfiguration
  • Fake.ClearRecordedCalls
  • Fake.GetCalls
  • Fake.GetFakeManager
  • not Fake.InitializeFixture, since we’d like to remove it in 5.0.0 (the method itself should probably have already been marked obsolete; not a disaster, since the attributes that are required to use it are so marked, but maybe we should spin off an issue now)
  • FakeManager.Object
  • FakeManager.FakedObjectType
  • FakeManager.Rules
  • FakeManager.AddInterceptionListener (this is one method I’d consider removing)
  • FakeManager.AddRuleFirst
  • FakeManager.AddRuleLast
  • FakeManager.RemoveRule

There may be more.

There’s no need to document everything in one big change. We could spin off separate issues or just PRs for subsets of the work.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslevesquecommented, Jan 7, 2019

This change has been released in FakeItEasy 5.0.0.

0reactions
blairconradcommented, Oct 18, 2018

I don’t really see how it’s related… where would you add that link?

Yeah, maybe not. Had there been an overall page for configuring Fakes, I’d link from there. This one felt closest to me, as for sure anything you need the advanced functions for would be considered “custom code”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage — Requests 2.31.0 documentation
Advanced Usage ¶. This document covers some of Requests more advanced features. ... A Session object has all the methods of the main...
Read more >
Manipulating documents - Learn web development | MDN
In this article we'll look at how to use the DOM in detail, along with some other interesting APIs that can alter your...
Read more >
Advanced Evaluation Using Prompt
We recommend you use the PROMPT mnemonic (Provenance, Relevance,. Objectivity, Method, Presentation, Timeliness) outlined in this document.
Read more >
Documentation - Advanced Types
This page lists some of the more advanced ways in which you can model types, it works in tandem with the Utility Types...
Read more >
Google Docs Advanced Tutorial - YouTube
Google Docs Advanced Tutorial Exercise Files : https://bit.ly/3vLqpIt Who it's for: This course is designed for anyone who needs a free, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found