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); }
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); }
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); }
public void ShouldBe(NoteNullablePrimary other) { Id.ShouldBe(other.Id); CreatedOn.ShouldBe(other.CreatedOn); Text.ShouldBe(other.Text); }