public void TestGetContentForReader() { string con = "This is such a horrible bad content."; string expected = "This is such a h######e b#d content."; string expected2 = "This is such a #### #### content."; _negContentRep.Setup(x => x.Content).Returns("horrible bad"); _contentRep.Setup(x => x.Content).Returns(con); _svc = new ReaderContentService(_contentRep.Object, _negContentRep.Object); Assert.AreEqual(_svc.GetContent(), expected); }
public void ClearData() { _contentRep = null; _negContentRep = null; _svc = null; }