Created
September 23, 2011 16:49
-
-
Save ungood/1237847 to your computer and use it in GitHub Desktop.
CTR Ranged Test
This file contains hidden or 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
| public class WhenSomethingSomethingSomething : BaseShippingOverrideContext | |
| { | |
| [TestCase(NoOverrideId, new DateTime(2011, 9, 23, 10, 21, 13), true] | |
| [TestCase(PennsylvaniaNightSortId, new DateTime(2011, 9, 23, 14, 16, 0), true] | |
| [TestCase(PennsylvaniaNightSortId, new DateTime(2011, 9, 23, 12, 0, 0), false] | |
| public void CheckTimeRestrictionShouldReturnCorrectValue(int typeId, DateTime orderDate, bool expected) | |
| { | |
| var override = ShippingOverridePostalCodeTypeFactory.CreateTypeById(typeId); | |
| ServiceUnderTest.CheckTimeRestriction(override, orderDate); | |
| } | |
| protected override void Because() | |
| { | |
| // Okay, not sure what would go here. | |
| } | |
| protected override void Context() | |
| { | |
| // Or here... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment