Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 private DeploymentView FindDeploymentView(DeploymentView deploymentView)
 {
     return(DeploymentViews.FirstOrDefault(view => view.Key == deploymentView.Key));
 }