/// <summary> /// Builds the <seealso cref="Workspace"/>. /// </summary> /// <returns> the workspace </returns> public virtual Workspace Build() { Workspace workspace = new Workspace(); workspace.Name = workspaceName; return workspace; }
///// <summary> ///// The Name of the workspace. ///// </summary> ///// <param name="name"> the Name </param> ///// <returns> the update workspace builder </returns> //public virtual UpdateWorkspaceBuilder SetName(string name) //{ // this.workspaceName = name; // return this; //} ///// <summary> ///// Gets the Name. ///// </summary> ///// <returns> the Name </returns> //public virtual string Name //{ // get // { // return workspaceName; // } //} /// <summary> /// Builds the <seealso cref="Workspace"/>. /// </summary> /// <returns> the workspace </returns> public virtual Workspace Build() { //if (workspaceName == null) //{ // throw new InvalidOperationException("A workspace name is required."); //} Workspace workspace = new Workspace(); workspace.Id = id; workspace.Name = workspaceName; return workspace; }