public void DecodeStandardTest()
        {
            var code = $"{id}";

            var training = Training.Decode(code, title);

            Assert.That(training.TrainingType, Is.EqualTo(TrainingType.Standard));
            Assert.That(training.Title, Is.EqualTo(title));
            Assert.That(training.Id, Is.EqualTo(id));
            Assert.That(training.Level, Is.EqualTo(0));
            Assert.That(training.PathwayCode, Is.EqualTo(0));
        }
        public void DecodeFrameworkTest()
        {
            var code = $"{id}-{level}-{pathwayCode}";

            var training = Training.Decode(code, title);

            Assert.That(training.TrainingType, Is.EqualTo(trainingType));
            Assert.That(training.Title, Is.EqualTo(title));
            Assert.That(training.Id, Is.EqualTo(id));
            Assert.That(training.Level, Is.EqualTo(level));
            Assert.That(training.PathwayCode, Is.EqualTo(pathwayCode));
        }
 public void DecodeFailureTest(string invalidCode)
 {
     Assert.Throws <InvalidOperationException>(() => Training.Decode(invalidCode, title));
 }