Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:557421
1 2 3 4 5 6 7 8 9 10 11 12 13
//class Application {
public virtual void ReceivePaperVersion(DateTime sendDate,DateTime arrivalDate){
if(Statuses.ApplicationStatus!=ApplicationStatus.ReceivedElectronically)
throw new ApplicationException
("Paper version can be received only right after electronic version is received.");
var d=Call.ApplicationDeadlines;
if(sendDate>d.PaperVersionSendDeadline)
throw new ApplicationException("Send date exceeds call deadline");
if(arrivalDate>d.PaperVersionArrivalDeadline)
throw new ApplicationException("Arrival date exceeds call deadline");
PaperVersionDetails=new PaperVersionDetails(sendDate,arrivalDate);
Statuses.ApplicationStatus=ApplicationStatus.ReceivedFully;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.