private void AssertData(CashRegisterPatchModel patchModel, CashRegisterGetModel getModel) { Assert.AreEqual(patchModel.CurrencyId, getModel.CurrencyId); Assert.AreEqual(patchModel.DateInitialState, getModel.DateInitialState); Assert.AreEqual(patchModel.Id, getModel.Id); Assert.AreEqual(patchModel.InitialState, getModel.InitialState); Assert.AreEqual(patchModel.IsDefault, getModel.IsDefault); Assert.AreEqual(patchModel.Name, getModel.Name); }
/// <inheritdoc /> public ApiResult <CashRegisterGetModel> Update(CashRegisterPatchModel model) { return(Patch <CashRegisterPatchModel, CashRegisterGetModel>(model)); }
/// <inheritdoc /> public Task <ApiResult <CashRegisterGetModel> > UpdateAsync(CashRegisterPatchModel model, CancellationToken cancellationToken = default) { return(PatchAsync <CashRegisterPatchModel, CashRegisterGetModel>(model, cancellationToken)); }