public void Repository_AddAccount_CallsServiceAddAccountAndAddStatus() { var account = new AccountsMainSet { AccountAmount = 45423.34M, AccountCompany = "Company4", AccountDate = Convert.ToDateTime("2015-12-23"), AccountMcdType = "ООО", AccountNumber = "456", AccountType = "Сервис", AccountYear = 2015, Id = 67 }; var status = new AccountsStatusDetailsSet { AccountMainId = 67, AccountStatus = "В обработке", Id = 1 }; _accountService.AddAccount(account); _accountsRepo.Verify(a => a.Add(account), Times.Once()); _accountsStatusRepo.Verify(a => a.Add(status), Times.Once()); }
private void ChangeStatus() { NewAccountStatus = new AccountsStatusDetailsSet(); IsChangeStatusOpen = !IsChangeStatusOpen; IsStatusHistoryOpen = false; }
private void ChangeStatus() { NewAccountStatus = new AccountsStatusDetailsSet(); IsChangeStatusOpen = true; }
public void AddNewStatus(AccountsStatusDetailsSet newAccountStatus) { _accountsStatusRepository.Add(newAccountStatus); }