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(); }
public static Guid SequentialAsString() => GuidProvider.Create(GuidStyle.SequentialAsStringStyle);
public static Guid Basic() => GuidProvider.Create(GuidStyle.BasicStyle);
public static Guid Equifax() => GuidProvider.Create(GuidStyle.EquifaxStyle);
public static Guid SequentialAsEnd() => GuidProvider.Create(GuidStyle.SequentialAsEndStyle);
public static Guid SequentialAsBinary() => GuidProvider.Create(GuidStyle.SequentialAsBinaryStyle);
public void WhenIGetAGuidItIsNotEmpty() { var target = new GuidProvider(); Assert.NotEqual(Guid.Empty, target.Create()); }