/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="schoolAttendedRefId">Reference to School Attended.</param>
 ///<param name="schoolYear">A SchoolYear</param>
 ///<param name="entryDate">An EntryDate</param>
 ///
 public StudentSchoolEnrollmentHistory( string schoolAttendedRefId, int? schoolYear, PartialDateType entryDate )
     : base(EtranscriptsDTD.STUDENTSCHOOLENROLLMENTHISTORY)
 {
     this.SchoolAttendedRefId = schoolAttendedRefId;
     this.SchoolYear = schoolYear;
     this.EntryDate = entryDate;
 }
Exemplo n.º 2
0
 public void testPartialDate012()
 {
     PartialDateType date = new PartialDateType("1999Z");
     Assert.AreEqual(1999, date.Year);
     Assert.AreEqual("1999Z", date.Value);
     Assert.AreEqual("1999Z", date.TextValue);
     Assert.AreEqual(PartialDateType.DateType.GYear, date.DataType);
 }
Exemplo n.º 3
0
 public void testPartialDate011()
 {
     PartialDateType date = new PartialDateType("1999");
     Assert.AreEqual((int) date.Year, 1999);
     Assert.AreEqual(date.Value, "1999");
     Assert.AreEqual(date.TextValue, "1999");
     Assert.AreEqual(PartialDateType.DateType.GYear, date.DataType);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="name">Textual description of assessment.</param>
 ///<param name="administrationDate">Date the assessment was administered.</param>
 ///<param name="studentGradeLevelWhenAssessed">Student's grade level when assessed.</param>
 ///<param name="testScoreType">Type of test score</param>
 ///<param name="testScore">Test score.</param>
 ///
 public AssessmentHistory( string name, PartialDateType administrationDate, GradeLevel studentGradeLevelWhenAssessed, AssessmentReportingMethod testScoreType, string testScore )
     : base(EtranscriptsDTD.ASSESSMENTHISTORY)
 {
     this.Name = name;
     this.AdministrationDate = administrationDate;
     this.StudentGradeLevelWhenAssessed = studentGradeLevelWhenAssessed;
     this.SetTestScoreType( testScoreType );
     this.TestScore = testScore;
 }
Exemplo n.º 5
0
        //[Test]
        public void assertPartialDate(PartialDateType date, int year, int month, int day, String lexicalValue)
        {
            Assert.AreEqual(year, date.Year.Value);
            Assert.AreEqual(month, date.Month.Value);
            Assert.AreEqual(day, date.Day.Value);

            DateTime cal = date.Date;
            Assert.IsNotNull(cal, "PartialDateType.getDate()");

            Assert.AreEqual(year, cal.Year);
            Assert.AreEqual(month, cal.Month);
            Assert.AreEqual(day, cal.Day);

            Assert.AreEqual(date.Value, lexicalValue);
            Assert.AreEqual(date.TextValue, lexicalValue);

            Assert.AreEqual(PartialDateType.DateType.Date, date.DataType);
        }
Exemplo n.º 6
0
 public void testPartialDate010()
 {
     PartialDateType date = new PartialDateType(1999);
     Assert.AreEqual((int) date.Year, 1999);
     Assert.AreEqual(PartialDateType.DateType.GYear, date.DataType);
 }
Exemplo n.º 7
0
 public void testPartialDate007()
 {
     PartialDateType date = new PartialDateType("2006-06-01Z");
     assertPartialDate(date, 2006, 6, 1, "2006-06-01Z");
 }
Exemplo n.º 8
0
 public void testPartialDate005()
 {
     PartialDateType date = new PartialDateType("1999-12-25");
     assertPartialDate(date, 1999, 12, 25, "1999-12-25");
 }
Exemplo n.º 9
0
        public void testPartialDate050()
        {
            PartialDateType date = new PartialDateType(1999, 12, 25);
            assertPartialDate(date, 1999, 12, 25, "1999-12-25");

            date.TextValue = "1999-12-06:00";
            Assert.AreEqual(1999, (int) date.Year);
            Assert.AreEqual(12, (int) date.Month);
            Assert.IsNull(date.Day);
            Assert.AreEqual(date.Value, "1999-12-06:00");
            Assert.AreEqual(date.TextValue, "1999-12-06:00");

            date.TextValue = "2007-06-01";
            assertPartialDate(date, 2007, 06, 01, "2007-06-01");

            date.TextValue = "2020-06-05Z";
            assertPartialDate(date, 2020, 06, 05, "2020-06-05Z");
        }
Exemplo n.º 10
0
 public void testPartialDate040()
 {
     DateTime? c = Adk.Dtd.GetFormatter(SifVersion.SIF20).ToDate("1999-12-25");
     PartialDateType date = new PartialDateType(c);
     assertPartialDate(date, 1999, 12, 25, "1999-12-25");
 }
Exemplo n.º 11
0
 public void testPartialDate030()
 {
     PartialDateType date = new PartialDateType(10, 12, 25);
     assertPartialDate(date, 10, 12, 25, "0010-12-25");
 }
Exemplo n.º 12
0
 public void testPartialDate022()
 {
     PartialDateType date = new PartialDateType("0010-12-06:00");
     Assert.AreEqual(10, (int) date.Year);
     Assert.AreEqual(12, (int) date.Month);
     Assert.IsNull(date.Day);
     Assert.AreEqual("0010-12-06:00", date.Value);
     Assert.AreEqual("0010-12-06:00", date.TextValue);
     Assert.AreEqual(PartialDateType.DateType.GYearMonth, date.DataType);
 }
Exemplo n.º 13
0
 public void testPartialDate021()
 {
     PartialDateType date = new PartialDateType("1999-12Z");
     Assert.AreEqual(1999, (int) date.Year);
     Assert.AreEqual(12, (int) date.Month);
     Assert.AreEqual("1999-12Z", date.Value);
     Assert.AreEqual("1999-12Z", date.TextValue);
     Assert.AreEqual(PartialDateType.DateType.GYearMonth, date.DataType);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="method">The method by which the requirement was met.</param>
 ///<param name="statusDeterminationDate">Date the student's status was determined.</param>
 ///
 public Requirement( string method, PartialDateType statusDeterminationDate )
     : base(EtranscriptsDTD.REQUIREMENT)
 {
     this.Method = method;
     this.StatusDeterminationDate = statusDeterminationDate;
 }