public void DeleteSentimentUpdatesPhrases() { Phrase phrase = new Phrase("i like google", DateTime.Now, AUTHOR); Sentiment sentiment = new Sentiment(SentimentType.POSITIVE, "i like"); REPOSITORY.Add(sentiment); REPOSITORY.Delete(sentiment.Id); Assert.IsNull(phrase.Type); }
public void DeleteSentiment() { SentimentRepository repository = new SentimentRepository(); repository.Add(SENTIMENT); repository.Delete(SENTIMENT.Id); Assert.IsTrue(repository.IsEmpty()); }
public void DeleteNonExistenceSentiment() { SentimentRepository repository = new SentimentRepository(); repository.Delete(SENTIMENT.Id); }
public void DeleteNullSentiment() { SentimentRepository repository = new SentimentRepository(); repository.Delete(null); }