Last active
October 11, 2015 10:38
-
-
Save pedropombeiro/3846303 to your computer and use it in GitHub Desktop.
Unity.AutoFactory usage
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
this.unityContainer | |
.RegisterAutoFactoryFor<ICustomer, Customer>() | |
.WithoutParameters(); | |
this.unityContainer | |
.RegisterAutoFactoryFor<ICustomerViewModel, CustomerViewModel>() | |
.WithParam<ICustomer>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The factory is available throught the IUnityFactory<ICustomer, ICustomerViewModel> generic type.