Commit 2eeb888
Fix MockTemplateInfo for System.Text.Json serialization
After the Newtonsoft.Json → System.Text.Json migration (#9956),
MockTemplateInfo's explicit ITemplateInfo.Tags and CacheParameters
implementations throw NotImplementedException. Newtonsoft never hit
these during serialization, but System.Text.Json walks all interface
properties, causing TemplateDiscoveryMetadata.ToJObject() to crash
in the SDK's CacheSearchCoordinatorTests.
Return empty dictionaries instead of throwing. Both properties are
[Obsolete] and the mock's real data lives in TagsCollection.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 111ab68 commit 2eeb888
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments