Testing Singletons in Swift – Property Injection
In a previous post we showed how to test Singletons with Constructor Injection. This will show another technique using Property Injection. Property Injection is useful in cases where a custom init method isn’t practical. A useful case for this is testing ViewControllers created by a Storyboard. So what’s the difference? Instead of injecting the dependencies …