private void SetUp()
        {
            mockService = new Mock<IInteractionRecorderService>();

            eventAggregator = new EventAggregator();
            commandSender = new InteractionRecorderCommandSender(eventAggregator);
            var factory = new InteractionRecorderViewModelFactory(commandSender);
            viewModel = factory.Create();
            commandHandler = new InteractionCommandHandler(eventAggregator, mockService.Object);
            changedProperties = new List<string>();
            viewModel.PropertyChanged += RecordProperyChanged;
        }
Example #2
0
 public ShellViewModel(InteractionRecorderViewModelFactory recorderfFactory, InteractionDisplayViewModelFactory displayViewModelFactory)
 {
     InteractionRecorder = recorderfFactory.Create();
     InteractionDisplayer = displayViewModelFactory.Create();
 }