public void TransactionFilterItemChangedEvent_WhenPublished_CurrentFilterItemIsSet()
        {
            var filterItemChangedEvent = new TransactionFilterItemChangedEvent();
            var filterItem = new TransactionFilterItemViewModel();

            TransactionListViewModel viewModel;
            {
                var eventAggregator = MockRepository.GenerateStub<IEventAggregator>();
                eventAggregator
                    .Stub(ea => ea.GetEvent<TransactionFilterItemChangedEvent>())
                    .Return(filterItemChangedEvent);

                viewModel = CreateTransactionListViewModel(eventAggregator);
            }

            filterItemChangedEvent.Publish(filterItem);

            Assert.AreEqual(filterItem, viewModel.CurrentFilterItem);
        }
 /// <summary>
 /// Sets the selected transaction filter item.
 /// </summary>
 public void SetSelectedFilterItem(TransactionFilterItemViewModel filterItem)
 {
     _selectedFilterItem = filterItem;
     _filterItemChangedEvent.Publish(_selectedFilterItem);
 }
 /// <summary>
 /// TODO
 /// </summary>
 public void SetCurrentFilterItem(TransactionFilterItemViewModel filterItem)
 {
     CurrentFilterItem = filterItem;
 }