Beispiel #1
0
        public AgreementState(ISeatResult result)
        {
            if (result == null)
            {
                throw new ArgumentNullException(nameof(result));
            }

            if (result.AgreementId.HasValue)
            {
                Label = (result.AgreementSigned ? "Signée" : "Attente de signature");
            }
            else
            {
                Label = result.AgreementRevoked ? "Révoquée" : "Non générée";
            }
        }
Beispiel #2
0
        public SeatItem(ISeatResult result, string studentName, string companyName)
        {
            StudentName   = studentName;
            CompanyName   = companyName;
            SeatId        = result.SeatId;
            StudentId     = result.StudentId;
            CompanyId     = result.CompanyId;
            Statut        = result.Status;
            Reason        = result.Reason;
            AgreementId   = result.AgreementId;
            Agreement     = result.Agreementnumber;
            AgreementType = result.AgreementType;

            AgreementState = new AgreementState(result);
            SeatState      = new SeatState(result.Status);
        }