public void Init_NullPassAccountId_AccountIdSet() { var vm = new PaymentListViewModel(accountRepository.Object, paymentRepository.Object, recPaymentRepository.Object, paymentManager.Object, null); vm.Init(0); vm.AccountId.ShouldBe(0); }
public void Init_PassAccountId_AccountIdSet() { var vm = new PaymentListViewModel(accountRepository.Object, paymentRepository.Object, recPaymentRepository.Object, paymentManager.Object, null, settingsManager.Object, endOfMonthManager.Object); vm.Init(42); vm.AccountId.ShouldBe(42); }
public void Init_NullPassAccountId_AccountIdSet() { var vm = new PaymentListViewModel(accountRepository.Object, paymentRepository.Object, paymentManager.Object, null, settingsManager.Object, endOfMonthManager.Object, backupManager.Object, modifyDialogService.Object); vm.Init(0); vm.AccountId.ShouldBe(0); }
public void Init_NullPassAccountId_AccountIdSet() { // Arrange var vm = new PaymentListViewModel(accountService.Object, paymentService.Object, dialogService.Object, settingsManager.Object, balanceCalculatorManager.Object, backupManager.Object, modifyDialogService.Object); // Act vm.Init(0); // Assert Assert.Equal(0, vm.AccountId); }