public Given_an_OdcmClass_Service_Property_forced_to_pascal_case() { SetConfiguration(new CSharpWriterSettings { ForcePropertyPascalCasing = true }); base.Init(m => { _property = Model.EntityContainer.Properties.RandomElement(); _property = _property.Rename(Any.Char('a', 'z') + _property.Name); }); }
public Given_an_OdcmClass_Entity_Navigation_Property_Instance_forced_to_pascal_case() { SetConfiguration(new CSharpWriterSettings { ForcePropertyPascalCasing = true }); Init(m => { _camelCasedProperty = Class.NavigationProperties().Where(p => !p.IsCollection).RandomElement(); _camelCasedName = Any.Char('a', 'z') + _camelCasedProperty.Name; _camelCasedProperty = _camelCasedProperty.Rename(_camelCasedName); }); _pascalCasedName = _camelCasedName.ToPascalCase(); }
public Given_an_OdcmClass_Complex_Property_forced_to_pascal_case() { SetConfiguration(new CSharpWriterSettings { ForcePropertyPascalCasing = true }); base.Init(m => { _targetClass = Any.ComplexOdcmClass(Namespace); m.AddType(_targetClass); _property = _targetClass.Properties.RandomElement(); _property = _property.Rename(Any.Char('a', 'z') + _property.Name); }); _targetType = Proxy.GetClass(_targetClass.Namespace, _targetClass.Name); }