public void SerialGeneratingTest()
        {
            ISerialGenerator serialGenerator = SerialGeneratorFactory.GetSerialGenerator();
            string           serial          = serialGenerator.Generate();

            Assert.AreNotEqual(serial, "");
        }
        public void GenerateLicencePackTest()
        {
            var licenceGenerator = new LicenceGenerator();
            var serialGenerator  = SerialGeneratorFactory.GetSerialGenerator();
            var licenceValidator = new LicenceValidator(serialGenerator);

            LicenceType licenceType = LicenceType.Full;
            var         licence     = new Licence
            {
                CustomerName = "Kookdc",
                Trial        = true,
                CreationDate = DateTime.Now,
                TrialDays    = 50,
                Type         = licenceType
            };
            var licencePackString = licenceGenerator.Generate(licence, serialGenerator.Generate());
            var returnedLicence   = licenceValidator.CheckLicence(licencePackString);

            Assert.AreEqual(returnedLicence.CustomerName, licence.CustomerName);
        }