zcz527 / autofac

Automatically exported from code.google.com/p/autofac
Other
0 stars 0 forks source link

Autofac.Extras.FakeItEasy should use a fake scope #432

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
    using(var fake = new AutoFake())

should exhibit scope semantics, i.e. act like 

    using(var scope = Fake.CreateScope())

AutoFake should also expose the Scope as a property so that ordered assertions 
can be created from it.

Original issue reported on code.google.com by adam.ra...@gmail.com on 13 May 2013 at 11:46

GoogleCodeExporter commented 8 years ago

Original comment by travis.illig on 14 May 2013 at 12:48

GoogleCodeExporter commented 8 years ago
After more thought, I don't think this should be done.

The purpose of the FakeItEasy extras library is to aid fake creation and fake 
scope has nothing to do with this. It can be controlled completely separately 
by the consumer. E.g. see 
https://github.com/FakeItEasy/FakeItEasy/wiki/Ordered-assertions

As far as I am concerned this issue can be closed.

Original comment by a...@adamralph.com on 9 Nov 2013 at 11:36

GoogleCodeExporter commented 8 years ago

Original comment by travis.illig on 11 Nov 2013 at 9:31