Created
November 30, 2016 02:15
-
-
Save benjanderson/d410937d01053ab6a4a4c93a963792f7 to your computer and use it in GitHub Desktop.
2 bindings autofixture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void MyTestMethod() | |
{ | |
this.Container.RegisterType<FactoryBase<Binding>, CustomBinding1>(); | |
var fixture1 = this.Container.Resolve<IFixture>(); | |
fixture1.Create<Binding>(); | |
this.Container.RegisterType<FactoryBase<Binding>, CustomBinding2>(); | |
var fixture2 = this.Container.Resolve<IFixture>(); | |
var customBinding1 = fixture1.Create<Binding>(); | |
var customBinding2 = fixture2.Create<Binding>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment