-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add testcases & use method name GetServiceAsync
- Loading branch information
1 parent
18ae0eb
commit f48767c
Showing
6 changed files
with
165 additions
and
3 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
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,40 @@ | ||
using Microsoft.FeatureManagement; | ||
|
||
namespace Tests.FeatureManagement | ||
{ | ||
interface IAlgorithm | ||
{ | ||
public string Style { get; } | ||
} | ||
|
||
class AlgorithmBeta : IAlgorithm | ||
{ | ||
public string Style { get; set; } | ||
|
||
public AlgorithmBeta() | ||
{ | ||
Style = "Beta"; | ||
} | ||
} | ||
|
||
class AlgorithmSigma : IAlgorithm | ||
{ | ||
public string Style { get; set; } | ||
|
||
public AlgorithmSigma() | ||
{ | ||
Style = "Sigma"; | ||
} | ||
} | ||
|
||
[VariantServiceAlias("Omega")] | ||
class AlgorithmOmega : IAlgorithm | ||
{ | ||
public string Style { get; set; } | ||
|
||
public AlgorithmOmega(string style) | ||
{ | ||
Style = style; | ||
} | ||
} | ||
} |
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