private void GivenATheme() { _theme = NewTheme(); _theme.Owners.Add(NewMember()); _theme.Owners.Add(NewMember()); _theme.Goals.Add(NewGoal()); _theme.Goals.Add(NewGoal()); _theme.Save(); }
/// <summary> /// Create a new Theme with required attributes. /// </summary> /// <param name="name">The initial name of the entity.</param> /// <param name="project">The Project this Theme will be in.</param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted Theme that exists in the VersionOne system.</returns> public Theme Theme(string name, Project project, IDictionary<string, object> attributes) { var theme = new Theme(instance) { Name = name, Project = project }; AddAttributes(theme, attributes); theme.Save(); return theme; }