public async Task When_GetCountryOfResidenceByIdAsync_Called_Expect_DbCalled() { //Arrange var id = 1; _countryOfResidenceRepositoryMock.Setup(x => x.GetById(id)); //Act var response = await _service.GetCountryOfResidenceByIdAsync(id); //Assert _countryOfResidenceRepositoryMock.Verify(x => x.GetById(id), Times.Once); }