public void BatchWriteRequestObject() { moq::Mock <Firestore.FirestoreClient> mockGrpcClient = new moq::Mock <Firestore.FirestoreClient>(moq::MockBehavior.Strict); BatchWriteRequest request = new BatchWriteRequest { Database = "databased8eee011", Writes = { new Write(), }, Labels = { { "key8a0b6e3c", "value60c16320" }, }, }; BatchWriteResponse expectedResponse = new BatchWriteResponse { WriteResults = { new WriteResult(), }, Status = { new gr::Status(), }, }; mockGrpcClient.Setup(x => x.BatchWrite(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse); FirestoreClient client = new FirestoreClientImpl(mockGrpcClient.Object, null); BatchWriteResponse response = client.BatchWrite(request); xunit::Assert.Same(expectedResponse, response); mockGrpcClient.VerifyAll(); }