private static IUnityContainer BuildUnityContainer() { var container = new UnityContainer(); container.RegisterType <IUserStore <IdentityUser>, UserStore>(); container.RegisterType <IUserManager <IdentityUser>, ApplicationUserManager>(); IocBuilder.BuildContainer(container); return(container); }