Ejemplo n.º 1
0
        public void ShouldNotBe(NoteNullablePrimary other, bool sameIds)
        {
            if (sameIds)
                Id.ShouldBe(other.Id);
            else
                Id.ShouldNotBe(other.Id);

            CreatedOn.ShouldNotBe(other.CreatedOn);
            Text.ShouldNotBe(other.Text);
        }
Ejemplo n.º 2
0
        public void ShouldNotBe(NoteNullablePrimary other, bool sameIds)
        {
            if (sameIds)
            {
                Id.ShouldBe(other.Id);
            }
            else
            {
                Id.ShouldNotBe(other.Id);
            }

            CreatedOn.ShouldNotBe(other.CreatedOn);
            Text.ShouldNotBe(other.Text);
        }
Ejemplo n.º 3
0
        public void Insert_GivenPocoWithPrimaryNullableValueType_ShouldBeValid()
        {
            var note = new NoteNullablePrimary() { Text = _note.Text, CreatedOn = _note.CreatedOn };

            var id = DB.Insert(note);

            var noteOther = DB.Single<NoteNullablePrimary>(note.Id);

            note.Id.ShouldBe(id);
            noteOther.ShouldNotBeNull();
            noteOther.ShouldBe(note);
        }
Ejemplo n.º 4
0
 public void ShouldBe(NoteNullablePrimary other)
 {
     Id.ShouldBe(other.Id);
     CreatedOn.ShouldBe(other.CreatedOn);
     Text.ShouldBe(other.Text);
 }
Ejemplo n.º 5
0
 public void ShouldBe(NoteNullablePrimary other)
 {
     Id.ShouldBe(other.Id);
     CreatedOn.ShouldBe(other.CreatedOn);
     Text.ShouldBe(other.Text);
 }