Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Why do you expect .start() to be called once when you call the manager twice? Commented Dec 2, 2017 at 10:30
  • Yes, you should inject an instance into NuclearManager because your code now makes the manager set its reactor instance to a default value. Only the highest level parts of a program should have defaults. Commented Dec 2, 2017 at 10:32
  • @quamrana: whether or not the OP should use dependency injection is an entirely separate discussion. Not all code under test will be suitable for dependency injection. Commented Dec 2, 2017 at 11:01