public UseCycleEntry(UseCycleSubject subject) { Id = subject.Id; Subject = subject; SubjectType = subject.SubjectType; LastSettled = DateTime.UtcNow; }
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); }
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); }
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); }
bool IUseCycleSubject.Settle(decimal price, DateTime lastSettled, DateTime now) { return(UseCycleSubject.Settle(price, lastSettled, now)); }