Skip to content

Setter Binding Convenience for Fixtures #775

@jeremydmiller

Description

@jeremydmiller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions