dynamic CreateExpando()
{
// Need a rounded date as DB can't store millis
var now = DateTime.UtcNow;
now = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);
// Setup a record
dynamic o = new System.Dynamic.ExpandoObject();
o.title = string.Format("insert {0}", r.Next());
o.draft = true;
o.content = string.Format("insert {0}", r.Next());
o.date_created = now;
o.date_edited = now;
o.state = (int)State.Maybe;
o.state2 = (int?)null;
return o;
}
[Test]