public void ResultCreation()
        {
            _result = new Result() { Id = 1, Mark = 60.5, Subject = _subjects[0]};

            Assert.AreEqual(1, _result.Id);
            Assert.AreEqual(60.5, _result.Mark);
            Assert.AreEqual("Apple", _result.Subject.Name);
        }
 public void ResultGradeConversionPass()
 {
     var result = new Result() { Id = 1, Mark = 50, Subject = _subjects[0] };
     Assert.AreEqual(Result.ResultGrade.Pass, result.Grade);
 }
 public void ResultGradeConversionHighDistinction()
 {
     var result = new Result() { Id = 1, Mark = 85, Subject = _subjects[0] };
     Assert.AreEqual(Result.ResultGrade.HighDistinction, result.Grade);
 }
 public void ResultGradeConversionFail()
 {
     var result = new Result() { Id = 1, Mark = 30, Subject = _subjects[0] };
     Assert.AreEqual(Result.ResultGrade.Fail, result.Grade);
 }
 public void ResultGradeConversionCredit()
 {
     var result = new Result() { Id = 1, Mark = 65, Subject = _subjects[0] };
     Assert.AreEqual(Result.ResultGrade.Credit, result.Grade);
 }