public void GetCarrierConstantResourceNames() { moq::Mock <CarrierConstantService.CarrierConstantServiceClient> mockGrpcClient = new moq::Mock <CarrierConstantService.CarrierConstantServiceClient>(moq::MockBehavior.Strict); GetCarrierConstantRequest request = new GetCarrierConstantRequest { ResourceNameAsCarrierConstantName = gagvr::CarrierConstantName.FromCarrierConstant("[CARRIER_CONSTANT]"), }; gagvr::CarrierConstant expectedResponse = new gagvr::CarrierConstant { ResourceNameAsCarrierConstantName = gagvr::CarrierConstantName.FromCarrierConstant("[CARRIER_CONSTANT]"), Id = -6774108720365892680L, CarrierConstantName = gagvr::CarrierConstantName.FromCarrierConstant("[CARRIER_CONSTANT]"), CountryCode = "country_code8debec55", }; mockGrpcClient.Setup(x => x.GetCarrierConstant(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse); CarrierConstantServiceClient client = new CarrierConstantServiceClientImpl(mockGrpcClient.Object, null); gagvr::CarrierConstant response = client.GetCarrierConstant(request.ResourceNameAsCarrierConstantName); xunit::Assert.Same(expectedResponse, response); mockGrpcClient.VerifyAll(); }