public void UniquifyName_should_assign_unique_names() { var namedItems = new List<DbAliasedMetadataItem>(); Assert.Equal("Foo", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new DbTableMetadata { DatabaseIdentifier = "Foo" }); Assert.Equal("Foo1", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new DbTableMetadata { DatabaseIdentifier = "Foo1" }); Assert.Equal("Foo2", namedItems.UniquifyIdentifier("Foo")); }
public void UniquifyName_should_assign_unique_names() { var namedItems = new List<EntitySet>(); Assert.Equal("Foo", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new EntitySet("ES1", null, "Foo", null, new EntityType("E", "N", DataSpace.CSpace))); Assert.Equal("Foo1", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new EntitySet("ES2", null, "Foo1", null, new EntityType("E", "N", DataSpace.CSpace))); Assert.Equal("Foo2", namedItems.UniquifyIdentifier("Foo")); }
public void UniquifyName_should_assign_unique_names() { var namedItems = new List <EntitySet>(); Assert.Equal("Foo", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new EntitySet("ES1", null, "Foo", null, new EntityType())); Assert.Equal("Foo1", namedItems.UniquifyIdentifier("Foo")); namedItems.Add(new EntitySet("ES2", null, "Foo1", null, new EntityType())); Assert.Equal("Foo2", namedItems.UniquifyIdentifier("Foo")); }