Exemplo n.º 1
0
 public void VerifyScheduling()
 {
     if (!Progress.WasSchedulingVerified())
     {
         Apply(SchedulingVerified.Instance(Id, Client, Expectations));
     }
 }
Exemplo n.º 2
0
        public static SchedulingVerified Instance(
            Id proposalId,
            Client client,
            Expectations expectations)
        {
            SchedulingVerified schedulingVerified = new SchedulingVerified
            {
                ProposalId     = proposalId.Value,
                ClientId       = client.Id.Value,
                CompletionDate = expectations.CompletedBy.Ticks
            };

            return(schedulingVerified);
        }
Exemplo n.º 3
0
 public void When(SchedulingVerified schedulingVerified)
 {
     this.Progress = Progress.VerifiedForScheduling();
 }