Exemple #1
0
        public void Constructing_AssignsValuesToProperties()
        {
            propertyNamer.SetValuesOfAllIn(Arg.Any <IList <MyClass> >());

            var list = new List <MyClass>();

            var builder = new ListBuilder <MyClass>(listSize, propertyNamer, reflectionUtil, new BuilderSettings());

            builder.Name(list);
        }
Exemple #2
0
        public IList <T> Name(IList <T> list)
        {
            if (!BuilderSettings.AutoNameProperties)
            {
                return(list);
            }

            propertyNamer.SetValuesOfAllIn(list);
            return(list);
        }