Ejemplo n.º 1
0
        public async void GetCouncilTaxDetails_ShouldCallCouncilTaxService()
        {
            // Arrange
            _mockCouncilTaxService
            .Setup(_ => _.GetCouncilTaxDetails(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <int>()))
            .ReturnsAsync(It.IsAny <CouncilTaxDetailsModel>());

            // Act
            await _controller.GetCouncilTaxDetails(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <int>());

            // Assert
            _mockCouncilTaxService.Verify(_ => _.GetCouncilTaxDetails(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <int>()), Times.Once);
        }