Beispiel #1
0
 public void SetUp()
 {
     machine = new Machine();
     ns = machine.CreateNamespace("foo");
 }
Beispiel #2
0
        public Namespace CreateNamespace(string name)
        {
            if (this.namespaces.ContainsKey(name))
                throw new InvalidOperationException(string.Format("Namespace '{0}' already exists", name));

            Namespace ns = new Namespace(this, name);

            this.namespaces[ns.Name] = ns;

            return ns;
        }