예제 #1
0
        public void RegisterIDebugBindingBecauseWeUseIt()
        {
            DependencyResolver.Initialize(new NinjectStandardKernel());

            Bindings.Initialize();
            BindingVerification.VerifyBinding <IDebug, SystemDebug>();
        }
예제 #2
0
        public void ProperlyRegisterBindings()
        {
            var tuple = new MvvmTuple {
                Model = typeof(TestModel), ViewModel = typeof(TestViewModel), View = typeof(TestView)
            };

            tuple.RegisterBindings();

            BindingVerification.VerifyBinding <IViewModel <TestModel>, TestViewModel>();
            BindingVerification.VerifyBinding <IView <TestViewModel>, TestView>();
            BindingVerification.VerifyBinding <IView <IViewModel <TestModel> >, TestView>();
        }