Ejemplo n.º 1
0
        public async Task GetRegionDocs_Id_ReturnsOkResult()
        {
            // Arrange
            int id = 2;

            _regionService.Setup(x => x.GetRegionDocsAsync(It.IsAny <int>())).ReturnsAsync(new List <RegionDocumentDTO>());
            // Act
            var result = await _regionController.GetRegionDocs(id);

            var actual = (result as ObjectResult).Value;

            // Assert
            Assert.IsInstanceOf <OkObjectResult>(result);
            Assert.IsInstanceOf <IEnumerable <RegionDocumentDTO> >(actual);
        }