コード例 #1
0
 public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator)
 {
     if (propertyInfo.CanWrite)
     {
         propertyInfo.SetValue(siteObject, Guid.NewGuid().ToString(), null);
     }
 }
コード例 #2
0
 public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator)
 {
     propertyInfo.SetValue(siteObject, new Random().Next(int.MaxValue), null);
 }
コード例 #3
0
 public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator)
 {
     propertyInfo.SetValue(siteObject, (ushort)12, null);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public void DoAction(object siteObject, PropertyInfo propertyInfo, DataGenerator dataGenerator)
 {
     propertyInfo.SetValue(siteObject, new[] { (byte)7 }, null);
 }