public void SerializeSingleValue() { var item = UserIdOrUserNameRef.FromUserName("test"); _ = JsonSerializer.Serialize(item, JsonSerialization.Options); }
public void SerializeCollection() { var item = UserIdOrUserNameRef.FromUserName("test"); _ = JsonSerializer.Serialize(new[] { item, item }, JsonSerialization.Options); }