protected override void Arrange() { AudioService = new Mock<IAudioService>(); DictionaryService = new Mock<IDictionaryService>(); if (ShouldConstruct) { ManagementViewModel = new ManagementViewModel(AudioService.Object, DictionaryService.Object); } }
public ManagementWindow( IAudioService audioService, IDictionaryService dictionaryService) { InitializeComponent(); //Instantiate ManagementViewModel and set as DataContext of ManagementView var managementViewModel = new ManagementViewModel(audioService, dictionaryService); this.ManagementView.DataContext = managementViewModel; }
protected override void Act() { ManagementViewModel = new ManagementViewModel(AudioService.Object, DictionaryService.Object); }