コード例 #1
0
        public async Task GetAddressPropertyByUprn_ShouldCallPropertyService()
        {
            _mockService
            .Setup(_ => _.GetPropertyByUprnAsync(It.IsAny <string>()))
            .ReturnsAsync(new StockportGovUK.NetStandard.Models.Verint.Address());

            await _controller.GetPropertiesByUPRN("test-postcode");

            _mockService
            .Verify(_ => _.GetPropertyByUprnAsync(It.IsAny <string>()), Times.Once);
        }