Ejemplo n.º 1
0
 public UseCycleEntry(UseCycleSubject subject)
 {
     Id          = subject.Id;
     Subject     = subject;
     SubjectType = subject.SubjectType;
     LastSettled = DateTime.UtcNow;
 }
Ejemplo n.º 2
0
        public UserProjectAssignment(Guid id, User user, Project project, Resources quota)
        {
            Id      = id;
            User    = user;
            Project = project;
            Quota   = quota;

            Payer               = new Payer(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Ejemplo n.º 3
0
        public Domain(Guid id, User payer, Resources quota, System system)
        {
            Id      = id;
            PayUser = payer;
            Quota   = quota;
            System  = system;

            Payer               = new Payer(this);
            Receiver            = new Receiver(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Ejemplo n.º 4
0
        public Project(Guid id, User payUser, Domain domain, Resources quota)
        {
            Id      = id;
            PayUser = payUser;
            Domain  = domain;
            Quota   = quota;

            Payer               = new Payer(this);
            Receiver            = new Receiver(this);
            UseCycleSubject     = new UseCycleSubject(this);
            BillingCycleSubject = new BillingCycleSubject(this);
        }
Ejemplo n.º 5
0
 bool IUseCycleSubject.Settle(decimal price, DateTime lastSettled, DateTime now)
 {
     return(UseCycleSubject.Settle(price, lastSettled, now));
 }