public async Task Should_Throw_Exception_Update_From_Bank_Expenditure_Note() { CreditorAccountService service = new CreditorAccountService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); await Assert.ThrowsAsync <NotFoundException>(() => service.UpdateFromBankExpenditureNoteAsync(new CreditorAccountBankExpenditureNotePostedViewModel())); }
private CreditorAccountDataUtil _dataUtil(CreditorAccountService service) { GetServiceProvider(); return(new CreditorAccountDataUtil(service)); }
public async Task Should_Fail_Put_UnitReceiptNote() { CreditorAccountService service = new CreditorAccountService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); CreditorAccountUnitReceiptNotePostedViewModel newData = new CreditorAccountUnitReceiptNotePostedViewModel(); await Assert.ThrowsAnyAsync <NotFoundException>(() => service.UpdateFromUnitReceiptNoteAsync(newData)); }
public async Task Should_Fail_Create_From_Memo() { CreditorAccountService service = new CreditorAccountService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); CreditorAccountMemoPostedViewModel memoData = new CreditorAccountMemoPostedViewModel(); await Assert.ThrowsAnyAsync <NotFoundException>(() => service.CreateFromMemoAsync(memoData)); }
public CreditorAccountDataUtil(CreditorAccountService service) { Service = service; }