예제 #1
0
        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);
        }
예제 #2
0
 public QueryModel()
 {
     RevisionFrom = new ChangesetVersionSpec(1);
     RevisionTo = VersionSpec.Latest;
     MaxRevisions = int.MaxValue;
     Author = new Author();
     IncludeChanges = true;
     DeletionId = 0;
     SlotMode = false;
     RecursionType = RecursionType.Full;
 }