public When_application_has_default_variables()
{
_Deploy = new Mock<IDeploymentService>(MockBehavior.Strict);
string slug;
_Deploy.Setup(d => d.Deploy(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<App>(), It.IsAny<Dictionary<string, string>>(), out slug))
.Returns(DeploymentResult.Success)
.Callback<string, string, App, Dictionary<string, string>, string>((name, region, app, vars, alug) =>
{
_ReceivedVars = vars;
});
_Browser = Testing.CreateBrowser<SecuredPagesModule>(with =>
{
with.LoggedInUser();
with.Deployment(_Deploy);
});
_Response = _Browser.Post("/Deploy/jabbr", with =>
{
with.FormValue("application_name", "JabbR Test");
with.FormValue("region_id", "amazon-web-services::us-east-1");
});
}