public void SetUp() { _mocks = new Mockery(); _mockAccountRepository = _mocks.NewMock<IAccountRepository>(); _mockJournalRepository = _mocks.NewMock<IJournalRepository>(); _changeCounter = new PropertyChangedCounter(); }
public void SetUp() { _mocks = new Mockery(); _mockAccountRepository = _mocks.NewMock<IAccountRepository>(); _mockAccountTagRepository = _mocks.NewMock<IAccountTagRepository>(); _mockMainWindowViewModel = _mocks.NewMock<IMainWindowViewModel>(); _changeCounter = new PropertyChangedCounter(); }
public void SetUp() { _changeCounter = new PropertyChangedCounter(); _mocks = new Mockery(); _mockAccountTagRepository = _mocks.NewMock<IAccountTagRepository>(); _mockAccountRepository = _mocks.NewMock<IAccountRepository>(); ////Expect.Once.On(_mockAccountTagRepository).Method("GetAll").Will(Return.Value(new List<AccountTag>())); var accountList = new List<Account> {_account1, _account2}; Expect.Once.On(_mockAccountRepository).Method("GetAll").Will(Return.Value(accountList)); _accountMaintenenceViewModel = new AccountMaintenenceViewModel(_mockAccountRepository, _mockAccountTagRepository); }