public void Assure_has_author() { var cs = new Changeset(); Assert.IsNull(cs.Author); var user = new Author {Username = "******"}; cs.Author = user; Assert.AreEqual(cs.Author, user); }
public QueryModel() { RevisionFrom = new ChangesetVersionSpec(1); RevisionTo = VersionSpec.Latest; MaxRevisions = int.MaxValue; Author = new Author(); IncludeChanges = true; DeletionId = 0; SlotMode = false; RecursionType = RecursionType.Full; }