public void SetActiveProject(string projectName) { var abbriviation = AbbriviationBuilder.GetAbbriviation(projectName); var project = GetProject(abbriviation); if (project == null) { throw new ArgumentException(string.Format("Invalid project name: {0}", projectName)); } activeProject = project; }
public void AddProject(string name) { if (name.StartsWith(".")) { throw new ProjectStartsWithDotException(); } var trimmedName = name.Trim(); AddProject(trimmedName, AbbriviationBuilder.GetAbbriviation(trimmedName)); }