public virtual IDeploymentBuilder AddDeploymentResourceByName(string deploymentId, string resourceName) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "deploymentId", deploymentId); EnsureUtil.EnsureNotNull(typeof(NotValidException), "resourceName", resourceName); CollectionUtil.AddToMapOfSets(deploymentResourcesByName, deploymentId, resourceName); return(this); }