public GetUserStateQuery(
            Fifthweek.Api.Identity.Shared.Membership.Requester requester,
            Fifthweek.Api.Identity.Shared.Membership.UserId requestedUserId,
            System.Boolean impersonate,
            System.DateTime now)
        {
            if (requester == null)
            {
                throw new ArgumentNullException("requester");
            }

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

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

            this.Requester       = requester;
            this.RequestedUserId = requestedUserId;
            this.Impersonate     = impersonate;
            this.Now             = now;
        }
Exemplo n.º 2
0
        public CreateSnapshotMessage(
            Fifthweek.Api.Identity.Shared.Membership.UserId userId,
            Fifthweek.Payments.SnapshotCreation.SnapshotType snapshotType)
        {
            if (snapshotType == null)
            {
                throw new ArgumentNullException("snapshotType");
            }

            this.UserId       = userId;
            this.SnapshotType = snapshotType;
        }