Exemplo n.º 1
0
 public void GuidCreateTest()
 {
     GuidProvider.Create().CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(CombStyle.NormalStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(CombStyle.UnixStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(CombStyle.SqlStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(CombStyle.LegacySqlStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(CombStyle.PostgreSqlStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.BasicStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.TimeStampStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.UnixTimeStampStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.SqlTimeStampStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.LegacySqlTimeStampStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.PostgreSqlTimeStampStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.CombStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.SequentialAsStringStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.SequentialAsBinaryStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.SequentialAsEndStyle).CastToString().ShouldNotBeEmpty();
     GuidProvider.Create(GuidStyle.EquifaxStyle).CastToString().ShouldNotBeEmpty();
 }
Exemplo n.º 2
0
 public static Guid SequentialAsString() => GuidProvider.Create(GuidStyle.SequentialAsStringStyle);
Exemplo n.º 3
0
 public static Guid Basic() => GuidProvider.Create(GuidStyle.BasicStyle);
Exemplo n.º 4
0
 public static Guid Equifax() => GuidProvider.Create(GuidStyle.EquifaxStyle);
Exemplo n.º 5
0
 public static Guid SequentialAsEnd() => GuidProvider.Create(GuidStyle.SequentialAsEndStyle);
Exemplo n.º 6
0
 public static Guid SequentialAsBinary() => GuidProvider.Create(GuidStyle.SequentialAsBinaryStyle);
Exemplo n.º 7
0
        public void WhenIGetAGuidItIsNotEmpty()
        {
            var target = new GuidProvider();

            Assert.NotEqual(Guid.Empty, target.Create());
        }