Beispiel #1
0
        public CreateSubscriberSnapshotDbStatement(
            Fifthweek.Payments.SnapshotCreation.ISnapshotTimestampCreator timestampCreator,
            Fifthweek.Api.Persistence.IFifthweekDbConnectionFactory connectionFactory)
        {
            if (timestampCreator == null)
            {
                throw new ArgumentNullException("timestampCreator");
            }

            if (connectionFactory == null)
            {
                throw new ArgumentNullException("connectionFactory");
            }

            this.timestampCreator  = timestampCreator;
            this.connectionFactory = connectionFactory;
        }
Beispiel #2
0
        public CreateCreatorFreeAccessUsersSnapshotDbStatement(
            Fifthweek.Shared.IGuidCreator guidCreator,
            Fifthweek.Payments.SnapshotCreation.ISnapshotTimestampCreator timestampCreator,
            Fifthweek.Api.Persistence.IFifthweekDbConnectionFactory connectionFactory)
        {
            if (guidCreator == null)
            {
                throw new ArgumentNullException("guidCreator");
            }

            if (timestampCreator == null)
            {
                throw new ArgumentNullException("timestampCreator");
            }

            if (connectionFactory == null)
            {
                throw new ArgumentNullException("connectionFactory");
            }

            this.guidCreator       = guidCreator;
            this.timestampCreator  = timestampCreator;
            this.connectionFactory = connectionFactory;
        }