Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#176: Adding support for aggregated/interhited interfaces
- Loading branch information
Jan Steffen
committed
Jul 13, 2018
1 parent
ee7a8f0
commit 3943d36
Showing
3 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Threading.Tasks; | ||
using Refit; // InterfaceStubGenerator looks for this | ||
using static System.Math; // This is here to verify https://github.com/paulcbetts/refit/issues/283 | ||
|
||
namespace Refit.Tests | ||
{ | ||
[Headers("User-Agent: Refit Integration Tests")] | ||
public interface IAmInterfaceA | ||
{ | ||
[Get("/ping")] | ||
Task<string> Ping(); | ||
} | ||
|
||
[Headers("User-Agent: Refit Integration Tests")] | ||
public interface IAmInterfaceB | ||
{ | ||
[Get("/pong")] | ||
Task<string> Pong(); | ||
} | ||
|
||
[Headers("User-Agent: Refit Integration Tests")] | ||
public interface IAmInterfaceC : IAmInterfaceB, IAmInterfaceA | ||
{ | ||
[Get("/pang")] | ||
Task<string> Pang(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters