Skip to content

Instantly share code, notes, and snippets.

@ungood
Created September 23, 2011 16:49
Show Gist options
  • Select an option

  • Save ungood/1237847 to your computer and use it in GitHub Desktop.

Select an option

Save ungood/1237847 to your computer and use it in GitHub Desktop.
CTR Ranged Test
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