Esempio n. 1
0
        public void ShouldGenerateValue()
        {
            var gen        = new StaticGuidGenerator(new ColumnDataTypeDefinition("UniqueIdentifier", false));
            var firstValue = gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
        }
        public void ShouldGenerateValue()
        {
            var expected = Guid.NewGuid();

            var gen = new StaticGuidGenerator(new ColumnDataTypeDefinition("UniqueIdentifier", false));

            gen.GeneratorParameters.Value.Value = expected;
            var firstValue = gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
            Assert.That(firstValue, Is.EqualTo(expected));
        }