public virtual IDeploymentBuilder AddDeploymentResourcesByName(string deploymentId, IList <string> resourceNames) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "deploymentId", deploymentId); EnsureUtil.EnsureNotNull(typeof(NotValidException), "resourceNames", resourceNames); EnsureUtil.EnsureNotEmpty(typeof(NotValidException), "resourceNames", resourceNames); EnsureUtil.EnsureNotContainsNull(typeof(NotValidException), "resourceNames", resourceNames); CollectionUtil.AddCollectionToMapOfSets(deploymentResourcesByName, deploymentId, resourceNames); return(this); }