BoDi
BoDi copied to clipboard
Does instances created by registered factories are automatically disposed?
Hi,
I know that IDisposable instances registered by RegisterInstanceAs can be disposed by BoDI after each scenario only if dispose parameter is set to true. I want my instances to be created by factory method so I use RegisterFactoryAs registration method. I noticed that those instances are not stored in objectPool and they are not subjects for disposing in container's Dispose method.
Can you confirm that my observations are true? I'm using SpecFlow 3.3.30 and BoDI 1.4.1.
Thanks,