Пример #1
0
 public void TestInitialize()
 {
     _accountStorage            = new AccountStorageMock();
     _accountManager            = new AccountManager(_accountStorage);
     _windowManager             = new WindowManagerMock();
     _newAccountWindowViewModel = new NewAccountWindowViewModel(_windowManager, _accountManager);
 }
Пример #2
0
        public void TestInitialize()
        {
            var targetAccount = new Account();

            _accountStorage         = new AccountStorageMock();
            _accountManager         = new AccountManager(_accountStorage);
            _windowManager          = new WindowManagerMock();
            _accountWindowViewModel = new AccountWindowViewModel(_windowManager, _accountManager, targetAccount, "title");
        }
Пример #3
0
        public void TestInitialize()
        {
            _targetAccount = new Account()
            {
                AccountName = "a",
                UserId      = "b",
                Password    = "******",
                Url         = "d",
                Remarks     = "e",
            };

            _accountStorage             = new AccountStorageMock();
            _accountManager             = new AccountManager(_accountStorage);
            _windowManager              = new WindowManagerMock();
            _editAccountWindowViewModel = new EditAccountWindowViewModel(_windowManager, _accountManager, _targetAccount);
        }
Пример #4
0
 public void TestInitialize()
 {
     _accountStorage = new AccountStorageMock();
     _accountManager = new AccountManager(_accountStorage);
 }