private void SetRepoPushTo(Guid repo_id, RepositoryPushMode repositoryPushStatus)
        {
            app.NavigateTo <RepositoryController>(c => c.Edit(repo_id));
            var form   = app.FindFormFor <RepositoryDetailModel>();
            var select = new SelectElement(form.Field(f => f.AllowAnonymousPush).Field);

            select.SelectByValue(repositoryPushStatus.ToString("D"));
            form.Submit();
            ITH.AssertThatNoValidationErrorOccurred();
        }
 private void SetRepoPushTo(Guid repo_id, RepositoryPushMode repositoryPushStatus)
 {
     app.NavigateTo<RepositoryController>(c => c.Edit(repo_id));
     var form = app.FindFormFor<RepositoryDetailModel>();
     var select = new SelectElement(form.Field(f => f.AllowAnonymousPush).Field);
     select.SelectByValue(repositoryPushStatus.ToString("D"));
     form.Submit();
     ITH.AssertThatNoValidationErrorOccurred();
 }