Skip to content

@ArnisL /gist:557421
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
//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.