private static void AssertChangeCorrect(TopicChange change, string author, DateTime created, DateTime modified, string dottedNameWithVersion, string message) { Assert.AreEqual(author, change.Author, "Checking that author was correct " + message); Assert.AreEqual(created, change.Created, "Checking that the created time is assigned correctly " + message); Assert.AreEqual(modified, change.Modified, "Checking that the modification time is correct " + message); Assert.AreEqual(dottedNameWithVersion, change.TopicRevision.DottedNameWithVersion, "Checking that the dotted name with version is correct" + message); }
private void AssertTopicChangeCorrect(TopicChange actualChange, string expectedName, string expectedAuthor, DateTime expectedTimestamp, string message) { Assert.AreEqual(expectedName, actualChange.TopicRevision.LocalName, "Checking that name was correct for " + message); Assert.AreEqual(expectedAuthor, actualChange.Author, "Checking that author was correct for " + message); Assert.AreEqual(expectedTimestamp, actualChange.Created, "Checking that timestamp was correct for " + message); }
internal void OnTopicChange(TopicMessage message) => TopicChange?.Invoke(message);