-
-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #883 from Dreamescaper/usings_fix
Usings fix
- Loading branch information
Showing
8 changed files
with
1,500 additions
and
822 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
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,34 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Common.Helper; | ||
using Refit.Tests.Common; | ||
// InterfaceStubGenerator looks for this | ||
using Refit; | ||
|
||
namespace Refit.Tests | ||
{ | ||
[SomeHelper] | ||
public interface INamespaceOverlapApi | ||
{ | ||
[Get("/")] | ||
Task<SomeOtherType> SomeRequest(); | ||
} | ||
|
||
public static class NamespaceOverlapApi | ||
{ | ||
public static INamespaceOverlapApi Create() | ||
{ | ||
return RestService.For<INamespaceOverlapApi>("http://somewhere.com"); | ||
} | ||
} | ||
} | ||
|
||
namespace Common.Helper | ||
{ | ||
public class SomeHelperAttribute : Attribute { } | ||
} | ||
|
||
namespace Refit.Tests.Common | ||
{ | ||
public class SomeOtherType { } | ||
} |
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,18 @@ | ||
using global::System.Threading.Tasks; | ||
using Refit; // InterfaceStubGenerator looks for this | ||
|
||
namespace Refit.Tests | ||
{ | ||
using global::Refit.Tests.SomeNamespace; | ||
|
||
public interface NamespaceWithGlobalAliasApi | ||
{ | ||
[Get("/")] | ||
Task<SomeType> SomeRequest(); | ||
} | ||
} | ||
|
||
namespace Refit.Tests.SomeNamespace | ||
{ | ||
public class SomeType { } | ||
} |
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,18 @@ | ||
using System.Threading.Tasks; | ||
using Refit; // InterfaceStubGenerator looks for this | ||
|
||
namespace Refit.Tests | ||
{ | ||
using ModelNamespace; | ||
|
||
public interface IReducedUsingInsideNamespaceApi | ||
{ | ||
[Get("/")] | ||
Task<SomeType> SomeRequest(); | ||
} | ||
} | ||
|
||
namespace Refit.Tests.ModelNamespace | ||
{ | ||
public class SomeType { } | ||
} |
Oops, something went wrong.