コード例 #1
0
        public async Task EditAdministrator_CorrectData_ReturnsNoContentResult()
        {
            // Arrange
            RegionAdministrationDTO admin = new RegionAdministrationDTO()
            {
                ID = 2
            };

            _regionAdministrationService.Setup(x => x.EditRegionAdministrator(admin));
            _logger.Setup(x => x.LogInformation(It.IsAny <string>()));
            // Act
            var result = await _regionController.EditAdministrator(admin);

            // Assert
            Assert.IsInstanceOf <NoContentResult>(result);
        }