File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ await sourceEntry
98
98
else
99
99
{
100
100
Assert . True ( result . Uid == sourceEntry . Uid ) ;
101
+ Assert . NotNull ( result . _variant ) ;
102
+ Assert . NotNull ( result . _variant [ "_uid" ] ) ;
101
103
}
102
104
} ) ;
103
105
}
@@ -120,6 +122,8 @@ await sourceEntry
120
122
else
121
123
{
122
124
Assert . True ( result . Uid == sourceEntry . Uid ) ;
125
+ Assert . NotNull ( result . _variant ) ;
126
+ Assert . NotNull ( result . _variant [ "_uid" ] ) ;
123
127
}
124
128
} ) ;
125
129
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ private string _Url
48
48
49
49
internal Dictionary < string , object > _metadata = new Dictionary < string , object > ( ) ;
50
50
#endregion
51
-
51
+
52
52
#region Public Properties
53
53
/// <summary>
54
54
/// Title of an entry
@@ -110,6 +110,22 @@ private string _Url
110
110
/// </example>
111
111
public Dictionary < string , object > Metadata { get ; set ; }
112
112
113
+ /// <summary>
114
+ /// Set key/value attributes of an current entry instance.
115
+ /// </summary>
116
+ /// <example>
117
+ /// <code>
118
+ /// ContentstackClient stack = new ContentstackClinet("api_key", "delivery_token", "environment");
119
+ /// Entry entry = stack.ContentType("contentType_id").Entry("entry_uid");
120
+ /// entry.Fetch<Product>().ContinueWith((entryResult) => {
121
+ /// //Your callback code.
122
+ /// //var result = entryResult.Result.Object;
123
+ /// });
124
+ /// </code>
125
+ /// </example>
126
+ public Dictionary < string , object > _variant { get ; set ; }
127
+
128
+
113
129
/// <summary>
114
130
/// Set key/value attributes of an current entry instance.
115
131
/// </summary>
You can’t perform that action at this time.
0 commit comments