public void TestMethod1() { JsonResume jsonResume = new JsonResume(); jsonResume.AddAward(new Award()) .AddWork(new Work()) .AddEducation(new Education()) .AddPublication(new Publication()); // JsonResume jsonResume = JsonResume.FromJson(jsonString); Assert.AreEqual(jsonResume.Works.Count, 1); }
/// <summary> /// Adds a publication item to the resume /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="publication">the publication item</param> /// <returns></returns> public static JsonResume AddPublication(this JsonResume jsonResume, Publication publication) { Utilities.AddItemToList(jsonResume.Publications, publication); return(jsonResume); }
/// <summary> /// Adds an award item to the resume object /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="award">the award item</param> /// <returns></returns> public static JsonResume AddAward(this JsonResume jsonResume, Award award) { Utilities.AddItemToList(jsonResume.Awards, award); return(jsonResume); }
/// <summary> /// Adds an interest item to the rrsume object /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="interest">the interest item</param> /// <returns></returns> public static JsonResume AddInterest(this JsonResume jsonResume, Interest interest) { Utilities.AddItemToList(jsonResume.Interests, interest); return(jsonResume); }
/// <summary> /// Adds a language item to the resume object /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="language">the language item</param> /// <returns></returns> public static JsonResume AddLanguage(this JsonResume jsonResume, Language language) { Utilities.AddItemToList(jsonResume.Languages, language); return(jsonResume); }
/// <summary> /// Adds a skill item to the resume object /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="skill">the skill item</param> /// <returns></returns> public static JsonResume AddSkill(this JsonResume jsonResume, Skill skill) { Utilities.AddItemToList(jsonResume.Skills, skill); return(jsonResume); }
/// <summary> /// Adds an education item to the resume object /// </summary> /// <param name="jsonResume">the resume object</param> /// <param name="education">the education item</param> /// <returns></returns> public static JsonResume AddEducation(this JsonResume jsonResume, Education education) { Utilities.AddItemToList(jsonResume.Educations, education); return(jsonResume); }
/// <summary> /// Adds a volunteer item to the resume object /// </summary> /// <param name="jsonResume"></param> /// <param name="volunteer"></param> /// <returns></returns> public static JsonResume AddVolunteer(this JsonResume jsonResume, Volunteer volunteer) { Utilities.AddItemToList(jsonResume.Volunteers, volunteer); return(jsonResume); }
/// <summary> /// Adds a work item to the resume object /// </summary> /// <param name="jsonResume">The resume object</param> /// <param name="work">The work item</param> /// <returns></returns> public static JsonResume AddWork(this JsonResume jsonResume, Work work) { Utilities.AddItemToList(jsonResume.Works, work); return(jsonResume); }