Apphbify.Tests.Pages.Deploy.When_application_has_default_variables.When_application_has_default_variables C# (CSharp) Метод

When_application_has_default_variables() публичный Метод

public When_application_has_default_variables ( ) : System.Collections.Generic
Результат System.Collections.Generic
        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");
            });
        }