Ejemplo n.º 1
0
 private void AssertData(BankAccountPatchModel patchModel, BankAccountGetModel getModel)
 {
     Assert.AreEqual(patchModel.AccountNumber, getModel.AccountNumber);
     Assert.AreEqual(patchModel.BankId.Value, getModel.BankId);
     Assert.AreEqual(patchModel.CurrencyId, getModel.CurrencyId);
     Assert.AreEqual(patchModel.Iban, getModel.Iban);
     Assert.AreEqual(patchModel.Id, getModel.Id);
     Assert.AreEqual(patchModel.Name, getModel.Name);
     Assert.AreEqual(patchModel.Swift, getModel.Swift);
     Assert.NotNull(getModel.Metadata);
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public ApiResult <BankAccountGetModel> Update(BankAccountPatchModel model)
 {
     return(Patch <BankAccountPatchModel, BankAccountGetModel>(model));
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public Task <ApiResult <BankAccountGetModel> > UpdateAsync(BankAccountPatchModel model, CancellationToken cancellationToken = default)
 {
     return(PatchAsync <BankAccountPatchModel, BankAccountGetModel>(model, cancellationToken));
 }