示例#1
0
        public UsesContainerMutableImpl(UsesContainerState state, UsesContainerQuery query)
        {
            ArgumentValidator.ValidateNotNull("State", state);
            ArgumentValidator.ValidateNotNull("Query role", query);

            this._state = state;
            this._query = query;
        }
示例#2
0
        public static UsesContainerMutable CopyOf(UsesContainerQuery other)
        {
            UsesContainerState   state  = new UsesContainerState(other.Parent);
            UsesContainerMutable result = new UsesContainerMutableImpl(state, new UsesContainerQueryImpl(state));

            foreach (KeyValuePair <String, Object> kvp in other.ThisNamedObjects)
            {
                result.UseWithName(kvp.Key, kvp.Value);
            }
            result.Use(other.ThisUnnamedObjects.ToArray());
            return(result);
        }
示例#3
0
        public static UsesContainerMutable CreateWithParent(UsesContainerQuery parent)
        {
            UsesContainerState state = new UsesContainerState(parent);

            return(new UsesContainerMutableImpl(state, new UsesContainerQueryImpl(state)));
        }
示例#4
0
        public UsesContainerQueryImpl(UsesContainerState state)
        {
            ArgumentValidator.ValidateNotNull("State", state);

            this._state = state;
        }