public ContentViewModelFactoryTest()
        {
            this.kernel = new StandardKernel(new NinjectSettings { LoadExtensions = false });
            this.kernel.Bind<INewsViewModel>().ToConstant(Mock.Of<INewsViewModel>());
            this.kernel.Bind<IStockDetailViewModel>().ToConstant(Mock.Of<IStockDetailViewModel>());

            this.testee = new ContentViewModelFactory(this.kernel);
        }
Beispiel #2
0
        public ContentViewModelFactoryTest()
        {
            this.kernel = new StandardKernel(new NinjectSettings {
                LoadExtensions = false
            });
            this.kernel.Bind <INewsViewModel>().ToConstant(Mock.Of <INewsViewModel>());
            this.kernel.Bind <IStockDetailViewModel>().ToConstant(Mock.Of <IStockDetailViewModel>());

            this.testee = new ContentViewModelFactory(this.kernel);
        }