Exemple #1
0
 void AssertPocos(poco a, poco b)
 {
     Assert.AreEqual(a.id, b.id);
     Assert.AreEqual(a.title, b.title);
     Assert.AreEqual(a.draft, b.draft);
     Assert.AreEqual(a.content, b.content);
     Assert.AreEqual(a.date_created, b.date_created);
     Assert.AreEqual(a.date_edited, b.date_edited);
     Assert.AreEqual(a.state, b.state);
     Assert.AreEqual(a.col_w_space, b.col_w_space);
     Assert.AreEqual(a.nullreal, b.nullreal);
 }
Exemple #2
0
		poco CreatePoco()
		{
			// 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
			var o = new poco();
			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 = State.Yes;
			o.col_w_space = 23;
			o.nullreal = 24;

			return o;
		}
Exemple #3
0
        poco CreatePoco()
        {
            // 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
            var o = new poco();

            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        = State.Yes;
            o.col_w_space  = 23;
            o.nullreal     = 24;

            return(o);
        }
Exemple #4
0
		void AssertPocos(poco a, poco b)
		{
			Assert.AreEqual(a.id, b.id);
			Assert.AreEqual(a.title, b.title);
			Assert.AreEqual(a.draft, b.draft);
			Assert.AreEqual(a.content, b.content);
			Assert.AreEqual(a.date_created, b.date_created);
			Assert.AreEqual(a.date_edited, b.date_edited);
			Assert.AreEqual(a.state, b.state);
			Assert.AreEqual(a.state2, b.state2);
			Assert.AreEqual(a.col_w_space, b.col_w_space);
			Assert.AreEqual(a.nullreal, b.nullreal);
		}