Exemplo n.º 1
0
 public MainModel(IFactoryLogic factoryLogic)
 {
     logic = factoryLogic ?? throw new ArgumentNullException(nameof(factoryLogic));
     db    = Context.GetContext();
     if (db == null)
     {
         throw new ArgumentNullException(nameof(db));
     }
 }
Exemplo n.º 2
0
        public KeyFeatureModel(IFactoryLogic factoryLogic)
        {
            this.factoryLogic = factoryLogic ?? throw new ArgumentNullException(nameof(factoryLogic));

            db = Context.GetContext();
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            featLogic       = this.factoryLogic.CreateFeature(db);
            keyFeatureLogic = this.factoryLogic.CreateKeyFeature(db);
        }
Exemplo n.º 3
0
        public FeatureModel(IFactoryLogic factoryLogic)
        {
            if (factoryLogic == null)
            {
                throw new ArgumentNullException(nameof(factoryLogic));
            }

            db = Context.GetContext();
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }
            featLogic = factoryLogic.CreateFeature(db);
        }
Exemplo n.º 4
0
        public HaspKeyModel(IFactoryLogic factoryLogic)
        {
            if (factoryLogic == null)
            {
                throw new ArgumentNullException(nameof(factoryLogic));
            }

            db = Context.GetContext(); if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            keyLogic = factoryLogic.CreateHaspKey(db);
        }
Exemplo n.º 5
0
        public ClientModel(IFactoryLogic factoryLogic)
        {
            if (factoryLogic == null)
            {
                throw new ArgumentNullException(nameof(factoryLogic));
            }

            db = Context.GetContext();
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            clientLogic = factoryLogic.CreateClient(db);
        }