예제 #1
0
        public void SendNotificationChannelVerificationCode2()
        {
            Mock <NotificationChannelService.NotificationChannelServiceClient> mockGrpcClient = new Mock <NotificationChannelService.NotificationChannelServiceClient>(MockBehavior.Strict);
            SendNotificationChannelVerificationCodeRequest request = new SendNotificationChannelVerificationCodeRequest
            {
                NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"),
            };
            Empty expectedResponse = new Empty();

            mockGrpcClient.Setup(x => x.SendNotificationChannelVerificationCode(request, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            NotificationChannelServiceClient client = new NotificationChannelServiceClientImpl(mockGrpcClient.Object, null);

            client.SendNotificationChannelVerificationCode(request);
            mockGrpcClient.VerifyAll();
        }