示例#1
0
        public async void GetOne_ShouldReturn_JsonArticle()
        {
            // Arrange
            mockedRep.Setup(x => x.GetArticleAsync(It.IsAny <int>())).ReturnsAsync(new Article());

            // Act
            var actual = await sut.GetOne(0);

            // Assert
            Assert.IsType(typeof(JsonResult <Article>), actual);
        }