Testura.Code icon indicating copy to clipboard operation
Testura.Code copied to clipboard

How do I declare the following class with Testura?

Open atresnjo opened this issue 3 years ago • 0 comments

Hey, great work! I've been trying to declare the following class, but without luck.

I've tried it using ThatInheritFrom, but couldn't get it to work. It results in the following

var classType = Type.MakeGenericSignatureType(typeof(EndpointBaseAsync.WithRequest<>.WithActionResult<>), typeof(Address), typeof(Token));
public class Foo: WithActionResult<Address, Token>
public class Foo: WithRequest<Address>, WithActionResult<Token>

What I actually want to accomplish

public class Foo: EndpointBaseAsync.WithRequest<Address>.WithActionResult<Token>

Any ideas? Thanks! 💯

atresnjo avatar Feb 25 '22 12:02 atresnjo