Esempio n. 1
0
        public void CreateEntity()
        {
            var nameVo        = new NameVO("default", "default");
            var contactInfoVO = new ContactInfoVO();

            user = new User(nameVo, contactInfoVO);
        }
Esempio n. 2
0
 public SofaLicense(
     NameVO name,
     PersonalInformationVO personalInfo,
     DriverRestrictionsVO driverRestrictions,
     int serviceId,
     int lastEditedById,
     DateTime dateExpired,
     string signatureData,
     string permitNumber,
     bool inPrintQueue,
     long dodId,
     int unitId,
     int?sponsorId  = null,
     int?rankId     = null,
     string remarks = null)
 {
     this.Name               = name;
     this.PersonalInfo       = personalInfo;
     this.DriverRestrictions = driverRestrictions;
     this.ServiceId          = serviceId;
     this.LastEditedById     = lastEditedById;
     this.DateUpdated        = DateTime.Now;
     this.DateCreated        = DateTime.Now;
     this.DateExpired        = dateExpired;
     this.SignatureData      = signatureData;
     this.PermitNumber       = permitNumber;
     this.DodId              = dodId;
     this.SponsorId          = sponsorId;
     this.UnitId             = unitId;
     this.RankId             = rankId;
     this.Remarks            = remarks;
 }
Esempio n. 3
0
 public User(NameVO name,
             ContactInfoVO contactInfo,
             int accountId        = 0,
             int?unitId           = null,
             int?serviceId        = null,
             int?rankId           = null,
             string signatureData = null)
 {
     this.Name          = name;
     this.ContactInfo   = contactInfo;
     this.AccountId     = accountId;
     this.UnitId        = unitId;
     this.ServiceId     = serviceId;
     this.RankId        = rankId;
     this.SignatureData = signatureData;
 }