コード例 #1
0
        public BrowserFluent <Vendeur_Dashboard_Page> Play(BrowserFluent <Accueil_Page> browserFluent)
        {
            var dashboard = browserFluent.Follow(p => p.Inscription)
                            .Submit(p => p.SInscrire,
                                    m =>
            {
                m.Nom                  = "Dupont";
                m.Prenom               = "Jean";
                m.Email                = this.Email;
                m.Password             = "******";
                m.PasswordConfirmation = "azerty";
            })
                            .ThenFollow(r => r.PageDashboard);

            return(dashboard);
        }
コード例 #2
0
        /*
         * private readonly IRepository repository;
         * public ScenarioCreerPoste(IRepository repository)
         * {
         *  this.repository = repository;
         * }*/

        public BrowserFluent <AccueilPage> Play(IBrowserFluent browserFluent)
        {
            /*
             * if (NomPostes == null)
             * {
             *  var postesExistant = await (repository.Query<Poste>().ToArrayAsync()).Select(x => x.Nom).ToArray();
             *  for (var i = 0; i < NombreDePostes; ++i)
             *  {
             *
             *  }
             * }*/
            BrowserFluent <AccueilPage> result = null;

            foreach (var n in this.NomPostes)
            {
                result = Play(browserFluent, n);
            }
            return(result);
        }