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());
 }
Ejemplo n.º 2
0
 private void ChangeStatus()
 {
     NewAccountStatus = new AccountsStatusDetailsSet();
     IsChangeStatusOpen = !IsChangeStatusOpen;
     IsStatusHistoryOpen = false;
 }
Ejemplo n.º 3
0
 private void ChangeStatus()
 {
     NewAccountStatus = new AccountsStatusDetailsSet();
     IsChangeStatusOpen = true;
 }
Ejemplo n.º 4
0
 public void AddNewStatus(AccountsStatusDetailsSet newAccountStatus)
 {
     _accountsStatusRepository.Add(newAccountStatus);
 }