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