You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Eric Bléher (Jira)" <ji...@apache.org> on 2020/04/08 17:47:00 UTC
[jira] [Created] (THRIFT-5173) Thrift C# (netstd) code generator:
make method virtual for mocking
Eric Bléher created THRIFT-5173:
-----------------------------------
Summary: Thrift C# (netstd) code generator: make method virtual for mocking
Key: THRIFT-5173
URL: https://issues.apache.org/jira/browse/THRIFT-5173
Project: Thrift
Issue Type: Improvement
Components: netstd - Compiler
Affects Versions: 0.13.0
Reporter: Eric Bléher
Thrift compiler generates C# clients where methods cannot be mocked because they are not defined as virtual.
Adding virtual allow the usage of Moq and thus I can have proper unit tests of my own class implementations consuming theses generated clients.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)