Пример #1
0
        public void GetValidationPackageStoredTest()
        {
            ValidationService.ValidationService target = new ValidationService.ValidationService();
            List <ValidationDocument>           actual = target.GetValidationPackage(this.tdb, 1, GenerationOptions.Generate, null);

            Assert.IsNotNull(actual);
            Assert.AreEqual(3, actual.Count);
        }
Пример #2
0
        public void GetValidationPackageGeneratedTest()
        {
            ValidationService.ValidationService target = new ValidationService.ValidationService();

            List <ValidationProfile> profiles = target.GetValidationProfiles(this.tdb);
            ValidationProfile        firstGeneratedProfile = profiles.FirstOrDefault(y => y.Id < 0);
            ValidationProfile        lastGeneratedProfile  = profiles.LastOrDefault(y => y.Id < 0);

            List <ValidationDocument> actual = target.GetValidationPackage(this.tdb, 2, GenerationOptions.Generate, null);

            Assert.IsNotNull(actual);
            Assert.AreEqual(1, actual.Count);

            actual = target.GetValidationPackage(this.tdb, 1, GenerationOptions.Generate, null);

            Assert.IsNotNull(actual);
            Assert.AreEqual(3, actual.Count);
        }