public void GetById() { SentimentRepository repository = new SentimentRepository(); repository.Add(SENTIMENT); Assert.IsNotNull(repository.Get(SENTIMENT.Id)); }
public void ModifySentimentWord() { string newWord = "Me encanta"; SentimentRepository repository = new SentimentRepository(); repository.Add(SENTIMENT); SENTIMENT.Word = newWord; REPOSITORY.Modify(SENTIMENT.Id, SENTIMENT); Assert.AreEqual(repository.Get(SENTIMENT.Id).Word, newWord); }
public void ModifySentimentType() { string newWord = "Me disgusta"; SentimentType newType = SentimentType.NEGATIVE; SentimentRepository repository = new SentimentRepository(); repository.Add(SENTIMENT); SENTIMENT.Word = newWord; SENTIMENT.Type = newType; REPOSITORY.Modify(SENTIMENT.Id, SENTIMENT); Assert.AreEqual(repository.Get(SENTIMENT.Id).Type, (SentimentType)newType); }
public void GetNonExitentId() { SentimentRepository repository = new SentimentRepository(); repository.Get(SENTIMENT.Id + 1); }