Exemple #1
0
        public async Task When_GetCountryPhoneCodeByIdAsync_Called_Expect_DbCalled()
        {
            //Arrange
            var id = 1;

            _countryPhoneCodeRepositoryMock.Setup(x => x.GetById(id));

            //Act
            var response = await _service.GetCountryPhoneCodeByIdAsync(id);

            //Assert
            _countryPhoneCodeRepositoryMock.Verify(x => x.GetById(id), Times.Once);
        }