VisualStudio11のNancy/xUnitテストがRazorビューエンジンに依存しているのはなぜですか?ナンシーのデフォルトビューエンジン(SSVE)を使用しています。別のブートストラッパーが必要ですか?
テスト
[Fact]
public void Register_mentor_Should_redirect_to_mentor_home()
{
// Given
var bootstrapper = new DefaultNancyBootstrapper();
var browser = new Browser(bootstrapper);
//When
var response = browser.Post("/register", (with) =>
{
with.HttpRequest();
with.FormValue("role", "mentor");
});
// Then
response.ShouldHaveRedirectedTo("/mentor");
}
次の例外が発生します
例外