Exemplo n.º 1
0
        public CohortBuilder()
        {
            var id = IdentityHelpers.GetNextCohortId();

            Messages = 1;

            //todo: most of this should be pushed into WithXXX methods
            _commitment = new Commitment
            {
                Id                         = id,
                Reference                  = HashingHelper.Encode(id),
                CommitmentStatus           = CommitmentStatus.Active,
                EditStatus                 = EditStatus.Employer,
                CreatedOn                  = System.DateTime.Now,
                LastAction                 = LastAction.None,
                TransferSenderId           = null,
                TransferSenderName         = "",
                TransferApprovalStatus     = null,
                LastUpdatedByEmployerName  = "",
                LastUpdatedByEmployerEmail = "",
                LastUpdatedByProviderName  = "",
                LastUpdatedByProviderEmail = ""
            };

            _apprenticeshipBuilders = new List <ApprenticeshipBuilder>();
        }