-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#69 - API always returns 304 as response from PUT request.
Modified the InProcProvider initialisation to set a fully qualified assembly name, made similar change to Femah.Core.Femah.SetSwitchType
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 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,43 @@ | ||
using Femah.Core.Providers; | ||
using NUnit.Framework; | ||
|
||
namespace Femah.Core.Tests | ||
{ | ||
public class InProcProviderTests | ||
{ | ||
public enum FeatureSwitches | ||
{ | ||
SomeNewFeature = 1 | ||
} | ||
|
||
public class TheGetMethod | ||
{ | ||
|
||
[SetUp] | ||
public void Initialize() | ||
{ | ||
} | ||
|
||
[Test] | ||
public void FeatureTypeIsFullyQualifiedAssemblyName() | ||
{ | ||
//Arrange | ||
var inProcProvider = new InProcProvider(); | ||
const string expectedFullyQualifiedFeatureType = "Femah.Core.FeatureSwitchTypes.SimpleFeatureSwitch, Femah.Core, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null"; | ||
|
||
//Act | ||
Femah.Configure() | ||
.FeatureSwitchEnum(typeof(FeatureSwitches)) | ||
.Initialise(); | ||
|
||
var featureSwitch = inProcProvider.Get("SomeNewFeature"); | ||
|
||
//Assert | ||
Assert.AreEqual(expectedFullyQualifiedFeatureType, featureSwitch.FeatureType); | ||
|
||
|
||
} | ||
} | ||
|
||
} | ||
} |
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