示例#1
0
        public RecordsUpdater(
            IIlaroAdmin admin,
            IExecutingDbCommand executor,
            IFetchingRecords source,
            IProvidingUser user)
        {
            if (admin == null)
            {
                throw new ArgumentNullException(nameof(admin));
            }
            if (executor == null)
            {
                throw new ArgumentNullException(nameof(executor));
            }
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            _admin    = admin;
            _executor = executor;
            _source   = source;
            _user     = user;
        }
 public DbCommandExecutor_()
 {
     var user = A.Fake<IProvidingUser>();
     A.CallTo(() => user.Current()).Returns("Test");
     _executor = new DbCommandExecutor(user);
     Admin.ConnectionStringName = ConnectionStringName;
 }
        public RecordsCreator(IExecutingDbCommand executor)
        {
            if (executor == null)
                throw new ArgumentNullException("executor");

            _executor = executor;
        }
示例#4
0
        public DbCommandExecutor_()
        {
            var user = A.Fake <IProvidingUser>();

            A.CallTo(() => user.CurrentUserName()).Returns("Test");
            _executor = new DbCommandExecutor(_admin, user);
        }
        public DbCommandExecutor_()
        {
            var user = A.Fake <IProvidingUser>();

            A.CallTo(() => user.Current()).Returns("Test");
            _executor = new DbCommandExecutor(user);
            Admin.ConnectionStringName = ConnectionStringName;
        }
        public RecordsDeleter(
            IExecutingDbCommand executor,
            IFetchingRecordsHierarchy hierarchySource)
        {
            if (executor == null)
                throw new ArgumentNullException("executor");
            if (hierarchySource == null)
                throw new ArgumentNullException("hierarchySource");

            _executor = executor;
            _hierarchySource = hierarchySource;
        }
        public RecordsUpdater(
            IExecutingDbCommand executor,
            IFetchingRecords source)
        {
            if (executor == null)
                throw new ArgumentNullException("executor");
            if (source == null)
                throw new ArgumentNullException("source");

            _executor = executor;
            _source = source;
        }
示例#8
0
        public RecordsCreator(Notificator notificator, IExecutingDbCommand executor)
        {
            if (notificator == null)
            {
                throw new ArgumentNullException("notificator");
            }
            if (executor == null)
            {
                throw new ArgumentNullException("executor");
            }

            _notificator = notificator;
            _executor    = executor;
        }
示例#9
0
        public RecordsCreator(
            IIlaroAdmin admin,
            IExecutingDbCommand executor,
            IProvidingUser user)
        {
            if (admin == null)
                throw new ArgumentNullException(nameof(admin));
            if (executor == null)
                throw new ArgumentNullException(nameof(executor));
            if (user == null)
                throw new ArgumentNullException(nameof(user));

            _admin = admin;
            _executor = executor;
            _user = user;
        }
示例#10
0
        public RecordsUpdater(
            IExecutingDbCommand executor,
            IFetchingRecords source)
        {
            if (executor == null)
            {
                throw new ArgumentNullException("executor");
            }
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            _executor = executor;
            _source   = source;
        }
示例#11
0
        public RecordsDeleter(
            IExecutingDbCommand executor,
            IFetchingRecordsHierarchy hierarchySource)
        {
            if (executor == null)
            {
                throw new ArgumentNullException("executor");
            }
            if (hierarchySource == null)
            {
                throw new ArgumentNullException("hierarchySource");
            }

            _executor        = executor;
            _hierarchySource = hierarchySource;
        }
示例#12
0
        public RecordsUpdater(
            IIlaroAdmin admin,
            IExecutingDbCommand executor,
            IFetchingRecords source,
            IProvidingUser user)
        {
            if (admin == null)
                throw new ArgumentNullException(nameof(admin));
            if (executor == null)
                throw new ArgumentNullException(nameof(executor));
            if (source == null)
                throw new ArgumentNullException(nameof(source));
            if (user == null)
                throw new ArgumentNullException(nameof(user));

            _admin = admin;
            _executor = executor;
            _source = source;
            _user = user;
        }
示例#13
0
        public RecordsCreator(
            IIlaroAdmin admin,
            IExecutingDbCommand executor,
            IProvidingUser user)
        {
            if (admin == null)
            {
                throw new ArgumentNullException(nameof(admin));
            }
            if (executor == null)
            {
                throw new ArgumentNullException(nameof(executor));
            }
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            _admin    = admin;
            _executor = executor;
            _user     = user;
        }
示例#14
0
 public DbCommandExecutor_()
 {
     var user = A.Fake<IProvidingUser>();
     A.CallTo(() => user.CurrentUserName()).Returns("Test");
     _executor = new DbCommandExecutor(_admin, user);
 }