-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
It might be an easy way to make the Fixture code easier to write.
So a property like this:
public SomeService {get;set;}
would automatically get filled by a call to IServiceProvider.GetInstance<T>() when starting a new test. Or fall back to State.Get() if the T has no ctor arguments.
Otherwise, use some kind of attribute to make it be explicit:
[Service]
public SomeService {get;set;}
or
[State]
public SomeService {get;set;}
Also, have the value put back into the State tracking during the tear down
Reactions are currently unavailable