EaseLibrary / Ease

EaseLib is a library to ease unit testing through IoC containers and Mocking
MIT License
12 stars 1 forks source link

Remove RegisterTypes() abstract method #10

Open duanenewman opened 4 years ago

duanenewman commented 4 years ago

I think this was a result of refactoring the code into a library with support for multiple containers test frameworks. We shouldn't be calling a virtual method from a base constructor, since it can do strange things. I already had to put in check logic on the base Prism test classes to make sure it was called.. but really since it is called from the constructor it can just be done in each subclass's ctor as needed. This eliminates the need to make sure the base methods are called as well.

To Do: