Created
May 20, 2010 21:41
-
-
Save stevenharman/408146 to your computer and use it in GitHub Desktop.
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
public class when_creating_a_new_pie : concerns | |
{ | |
private ViewResultBase _result; | |
protected override void context() | |
{ | |
var controller = new PieController(); | |
_result = controller.Create(new CreatePieCommand()) as ViewResultBase; | |
} | |
[Specification] | |
public void require_a_flavor() | |
{ | |
_result.ViewData.ModelState["flavor"].Errors.ShouldNotBeEmpty(); | |
} | |
public class CreatePieCommand | |
{ | |
[Required] | |
public string flavor { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment