/// <summary> /// Creates a deployment view. /// </summary> /// <returns>a DeploymentView object</returns> public DeploymentView CreateDeploymentView(String key, String description) { AssertThatTheViewKeyIsUnique(key); DeploymentView view = new DeploymentView(Model, key, description); DeploymentViews.Add(view); return(view); }
/// <summary> /// Creates a deployment view, where the scope of the view is the specified software system. /// </summary> /// <param name="softwareSystem">the SoftwareSystem object representing the scope of the view</param> /// <param name="key">the key for the deployment view (must be unique)</param> /// <param name="description">a description of the view</param> /// <returns>a DeploymentView object</returns> public DeploymentView CreateDeploymentView(SoftwareSystem softwareSystem, String key, String description) { AssertThatTheSoftwareSystemIsNotNull(softwareSystem); AssertThatTheViewKeyIsUnique(key); DeploymentView view = new DeploymentView(softwareSystem, key, description); DeploymentViews.Add(view); return(view); }