Example #1
0
        public void Startup()
        {
            container.RegisterType <IHttpClient, SynologyHttpClient>(new ContainerControlledLifetimeManager());
            var coreModule = new ApiCoreModule(container);

            coreModule.Configure();
        }
Example #2
0
        public void TestSetup()
        {
            this.Container = new NinjectContainer();

            var factory = new IoCFactory(this.Container);

            var apiCoreModule = new ApiCoreModule();

            apiCoreModule.Configure();
        }