public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator) { if (propertyInfo.CanWrite) { propertyInfo.SetValue(siteObject, Guid.NewGuid().ToString(), null); } }
public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator) { propertyInfo.SetValue(siteObject, new Random().Next(int.MaxValue), null); }
public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator) { propertyInfo.SetValue(siteObject, (ushort)12, null); }
public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator) { DateTime time = DateTime.SpecifyKind(dataGenerator.BeginTime, DateTimeKind.Utc); dataGenerator.BeginTime = time.AddMinutes(1); propertyInfo.SetValue(siteObject, time, null); }
public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator) { propertyInfo.SetValue(siteObject, new[] { (byte)7 }, null); }