Ejemplo n.º 1
0
        public void AddArticleShouldSaveArticle()
        {
            // Arrange
            var journalist = new Journalist("123", "Valid journalist", "Sofia", "359897456654");
            var article    = A.Dummy <Article>();

            // Act
            journalist.AddArticle(article);

            // Assert
            journalist.Articles.Should().Contain(article);
        }