public virtual Share Build() { //if (accessLevel == null) //{ // throw new InvalidOperationException("The access level must be specified."); //} Share share = new Share(); share.id = shareId; share.accessLevel = accessLevel; return share; }