public void AddValidPhrase() { authorManagement.AddAuthor(author); Entity entity = new Entity() { EntityName = "Mc donalds" }; entityManagement.AddEntity(entity); Phrase phrase = new Phrase() { TextPhrase = "Me encanta Mc Donalds", PhraseDate = DateTime.Now, Entity = entity, PhraseType = Phrase.TypePhrase.Positive, PhraseAuthor = author }; management.AddPhrase(phrase); CollectionAssert.Contains(management.AllPhrases, phrase); }
public void AddNewAuthor() { Author author = new Author() { UserName = "******", Name = "Joaquin", LastName = "Lamela", BirthDate = new DateTime(2000, 02, 29) }; management.AddAuthor(author); CollectionAssert.Contains(management.AllAuthors, author); }