Пример #1
0
        public CompositeModelMutable(CompositeModelState state, CompositeModel immutable)
        {
            ArgumentValidator.ValidateNotNull("State", state);
            ArgumentValidator.ValidateNotNull("Immutable", immutable);

            this._state     = state;
            this._immutable = immutable;
        }
Пример #2
0
        public CompositeModelImmutable(CompositeModelState state)
        {
            ArgumentValidator.ValidateNotNull("State", state);

            this._state = state;
        }
Пример #3
0
 protected override void CreateCompositeModelObjects(CompositeAssemblyInfo info, CollectionsFactory factory, out CompositeModelState state, out CompositeModelImmutable resultImmutable, out CompositeModelMutable result)
 {
     state           = new ServiceCompositeModelState(factory);
     resultImmutable = new ServiceCompositeModelImmutable((ServiceCompositeModelState)state);
     result          = new ServiceCompositeModelMutable((ServiceCompositeModelState)state, (ServiceCompositeModel)resultImmutable);
 }