| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.Data.Tables.Models; |
| | 5 | |
|
| | 6 | | namespace Azure.Data.Tables |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// A factory class which constructs model classes for mocking purposes. |
| | 10 | | /// </summary> |
| | 11 | | public static class TablesModelFactory |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of TableItem. </summary> |
| | 14 | | /// <param name="tableName"> The name of the table. </param> |
| | 15 | | /// <param name="odataType"> The odata type of the table. </param> |
| | 16 | | /// <param name="odataId"> The id of the table. </param> |
| | 17 | | /// <param name="odataEditLink"> The edit link of the table. </param> |
| | 18 | | public static TableItem TableItem(string tableName, string odataType, string odataId, string odataEditLink) => |
| 0 | 19 | | new TableItem(tableName, odataType, odataId, odataEditLink); |
| | 20 | | } |
| | 21 | | } |