public When_Type_With_UpperCase_Name_Needs_An_Alias() { var type = new ApplicationType("FooBar", "test", null); var field = new Field(type) { Name = "baz" }; var aliases = new FieldEntityAliasDictionary(); alias = aliases.CreateAliasForTypeByField(field); }
public When_Types_Whose_Names_Start_With_The_Same_Letter_Need_An_Alias() { var type = new ApplicationType("fooBar", "test", null); var f1 = new Field(type) { Name = "baz" }; var secondType = new ApplicationType("food", "test", null); var f2 = new Field(secondType) { Name = "wahoo" }; var aliases = new FieldEntityAliasDictionary(); alias = aliases.CreateAliasForTypeByField(f1); secondAlias = aliases.CreateAliasForTypeByField(f2); }