private void AssertModelsAreEqueal(PriceListItemGetModel data, PriceListItemPatchModel patchModel) { Assert.AreEqual(patchModel.Amount, data.Amount); Assert.AreEqual(patchModel.BarCode, data.BarCode); Assert.AreEqual(patchModel.Code, data.Code); Assert.AreEqual(patchModel.CurrencyId, data.CurrencyId); Assert.AreEqual(patchModel.IsStockItem, data.IsStockItem); Assert.AreEqual(patchModel.Name, data.Name); Assert.AreEqual(patchModel.Price, data.Price); Assert.AreEqual(patchModel.PriceType, data.PriceType); Assert.AreEqual(patchModel.Unit, data.Unit); Assert.AreEqual(patchModel.VatRateType, data.VatRateType); Assert.AreEqual(patchModel.VatCodeId, data.VatCodeId); }
/// <inheritdoc/> public Task <ApiResult <PriceListItemGetModel> > UpdateAsync(PriceListItemPatchModel model, CancellationToken cancellationToken = default) { return(PatchAsync <PriceListItemPatchModel, PriceListItemGetModel>(model, cancellationToken)); }
/// <inheritdoc/> public ApiResult <PriceListItemGetModel> Update(PriceListItemPatchModel model) { return(Patch <PriceListItemPatchModel, PriceListItemGetModel>(model)); }