Exemplo n.º 1
0
        public void DeleteArticleAsync_ArticleNameDoesNotExist_ReturnsError(string articleName)
        {
            //Arrange
            articlesAccessMock.Setup(x => x.DeleteArticleAsync(It.IsAny <string>())).ReturnsAsync(false);

            var expectedError = errorListProvider.GetError(ErrorCode.IE0002);

            //Act
            var messageResponse = articlesProvider.DeleteArticleAsync(articleName).Result;

            //Assert
            IsMessageFail(messageResponse, expectedError);
        }