Esempio n. 1
0
 void Assert(poco a, poco b)
 {
     Expect(a.id, Is.EqualTo(b.id));
     Expect(a.title, Is.EqualTo(b.title));
     Expect(a.draft, Is.EqualTo(b.draft));
     Expect(a.content, Is.EqualTo(b.content));
     Expect(a.date_created, Is.EqualTo(b.date_created));
     Expect(a.date_edited, Is.EqualTo(b.date_edited));
     Expect(a.state, Is.EqualTo(b.state));
     Expect(a.col_w_space, Is.EqualTo(b.col_w_space));
     Expect(a.nullreal, Is.EqualTo(b.nullreal));
 }
Esempio n. 2
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);
 }
Esempio n. 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;
		}
Esempio n. 4
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);
        }
Esempio n. 5
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);
		}
Esempio n. 6
0
 void Assert(poco a, poco b)
 {
     Expect(a.id, Is.EqualTo(b.id));
     Expect(a.title, Is.EqualTo(b.title));
     Expect(a.draft, Is.EqualTo(b.draft));
     Expect(a.content, Is.EqualTo(b.content));
     Expect(a.date_created, Is.EqualTo(b.date_created));
     Expect(a.date_edited, Is.EqualTo(b.date_edited));
     Expect(a.state, Is.EqualTo(b.state));
     Expect(a.col_w_space, Is.EqualTo(b.col_w_space));
     Expect(a.nullreal, Is.EqualTo(b.nullreal));
 }