public static void RegisterTypes(IWindsorContainer container) { AddControllers(container); RegisterRepositories(container); RegisterServices(container); RegisterFactories(container); var logService = new LogService("", false); container.Register(Component.For<ILogService>().Instance(logService).LifeStyle.Singleton); container.Register(Component.For<IProfileProvider>().ImplementedBy<ProfileProvider>().LifeStyle.Transient); container.Register(Component.For<IMembershipProvider>().ImplementedBy<MembershipProvider>().LifeStyle.Transient); }
public void SetUp() { this.logService = new LogService("", false); }