Exemplo n.º 1
0
        public ContainerView CreateContainerView(SoftwareSystem softwareSystem, string key, string description)
        {
            AssertThatTheViewKeyIsUnique(key);

            ContainerView view = new ContainerView(softwareSystem, key, description);

            ContainerViews.Add(view);

            return(view);
        }
Exemplo n.º 2
0
        public ContainerView CreateContainerView(SoftwareSystem softwareSystem, string key, string description)
        {
            if (GetViewWithKey(key) != null)
            {
                throw new ArgumentException("A view with the key " + key + " already exists.");
            }
            else
            {
                ContainerView view = new ContainerView(softwareSystem, key, description);
                ContainerViews.Add(view);

                return(view);
            }
        }
Exemplo n.º 3
0
 private ContainerView FindContainerView(ContainerView containerView)
 {
     return(ContainerViews.FirstOrDefault(view => view.Key == containerView.Key));
 }