/// <summary> /// transforms json into an action response /// </summary> /// <param name="responseJson">json with Twitter response</param> /// <param name="theAction">Type of action to process</param> /// <returns>Action response</returns> public virtual T ProcessActionResult(string responseJson, Enum theAction) { var trend = new Trend(); return(trend.ItemCast(default(T))); }
public void Trend_Can_Serialize() { var trend = new Trend(); var stringBuilder = new StringBuilder(); var writer = XmlWriter.Create(stringBuilder); var xmlSerializer = new XmlSerializer(typeof(Trend)); xmlSerializer.Serialize(writer, trend); }