public MainWindowAdapter(Window wpfWindow, IMainWindowViewModelFactory viewModelFactory) : base(wpfWindow) { if (viewModelFactory == null) { throw new ArgumentNullException("viewModelFactory"); } this.vmFactory = viewModelFactory; }