diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-11-29 11:26:25 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-11-29 11:26:25 +0300 |
commit | 0fe8e038af7f33eae824bba263e7c54dea829679 (patch) | |
tree | b71636e6ee0c558f491bccd93c0236dbccbc67d6 /Assistant/Product.cs | |
parent | f5234e956c79d3019e975a4d3550574c92f769e7 (diff) |
Добавлен кэшинг результатов запроса, интерфейс IProduct
Diffstat (limited to 'Assistant/Product.cs')
-rw-r--r-- | Assistant/Product.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Assistant/Product.cs b/Assistant/Product.cs new file mode 100644 index 0000000..17a7065 --- /dev/null +++ b/Assistant/Product.cs @@ -0,0 +1,21 @@ +namespace Rehau.Sku.Assist +{ + public class Product : IProduct + { + public string Sku { get; } + public string Name { get; } + + public string Uri => throw new System.NotImplementedException(); + + public Product(string sku, string name) + { + Sku = sku; + Name = name; + } + + public override string ToString() + { + return $"{this.Name} ({this.Sku})"; + } + } +}
\ No newline at end of file |