public void RegisterIDebugBindingBecauseWeUseIt() { DependencyResolver.Initialize(new NinjectStandardKernel()); Bindings.Initialize(); BindingVerification.VerifyBinding <IDebug, SystemDebug>(); }
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>(); }