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); }
/// <inheritdoc /> public ApiResult <BankAccountGetModel> Update(BankAccountPatchModel model) { return(Patch <BankAccountPatchModel, BankAccountGetModel>(model)); }
/// <inheritdoc /> public Task <ApiResult <BankAccountGetModel> > UpdateAsync(BankAccountPatchModel model, CancellationToken cancellationToken = default) { return(PatchAsync <BankAccountPatchModel, BankAccountGetModel>(model, cancellationToken)); }