public void Setup()
 {
     _session = MockRepository.GenerateStub<ISession>();
     _interceptKeys = MockRepository.GenerateStub<IInterceptKeys>();
     _target = new AdvancedConfigViewModel(new EventAggregator(), _session, _interceptKeys);
 }
        public AdvancedConfigView(AdvancedConfigViewModel vm)
        {
            InitializeComponent();

            Loaded += (s, e) => DataContext = vm;
        }