This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eventHandlerList = (EventHandlerList)HttpContextFactory.Context.ApplicationInstance.prop("Events"); | |
var eventList = new List<Object>(); | |
var next = eventHandlerList.field("head"); | |
while (next != null) | |
{ | |
eventList.add(next.field("key")); | |
next = next.field("next"); | |
} | |
return eventList; // there are 12 of these, and they are all objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using System | |
@using System.Web | |
@using System.ComponentModel | |
@using TeamMentor.CoreLib | |
@using O2.DotNetWrappers.ExtensionMethods | |
@{ | |
var application = HttpContextFactory.Context.ApplicationInstance; | |
var eventHandlerList = (EventHandlerList)application.prop("Events"); | |
var eventsFields = typeof(HttpApplication).fields().where(field=>field.Name.starts("Event")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var teamMentor = (API_TeamMentor_WebServices)_teamMentor; | |
var target = (string)_target; | |
var otherHrefsFound = (Dictionary<string, List<Article_WS>> )_otherHrefsFound; | |
var okList = (Dictionary<string, List<Article_WS>> )_okList; | |
var notokList = (Dictionary<string, List<Article_WS>> )_notokList; | |
var articlesToProcess = (List<Article_WS> )_articlesToProcess; | |
var stats = "{0} \n target: {1} \n # of articles: {2} \n - Other Href:{3}\n - OK: {4}\n- Not OK {5} ".format( | |
teamMentor.WebSite_Url.str(), target,articlesToProcess.size(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return service1Client.GetData(42); | |
//O2Ref:WCF_Consumer.exe | |
//O2Ref:System.ServiceModel.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var topPanel = panel.add_Panel(true); | |
WebClient client = new WebClient (); | |
Action<string> sendRequest = | |
(payload)=>{ | |
client.Headers.Add ("user-agent",payload); | |
var codeViewer = topPanel.add_SourceCodeViewer(); | |
var url = "https://meet.AAAAAA.co.uk"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var admin_Name = "admin"; | |
var admin_Pwd = "********"; | |
var server = "http://127.0.0.1:32768/"; | |
//helper method (should be an extension method) | |
Action<string,string> waitForElementText = (elementId, text)=> | |
{ | |
"waiting for '{0}' in element '{1}'".info(text, elementId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var apiCassini = nUnitTests_Cassini_TeamMentor.apiCassini; | |
if ("TeamMentor.Schemas".assembly().isNull()) | |
apiCassini.webRoot().mapPath("bin//TeamMentor.Schemas.dll").assembly(); | |
var o2Proxy = apiCassini.appDomain().o2Proxy(); | |
var tmConfig = o2Proxy.staticInvocation("TeamMentor.Schemas", | |
"TeamMentor.CoreLib.TMConfig", | |
"get_Current", new object[] {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WS_UsersCommunity : System.Web.Services.WebService | |
{ | |
[WebMethod()] | |
public void PostMessage(string sessionID, string userID, string messageSubject, string messageText) | |
{ | |
HacmeBank_v2_WS.DataFactory.PostMessage(userID, messageSubject, messageText); | |
} | |
} | |
public class DataFactory | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require 'fs' | |
sax = require 'sax' | |
file = require 'file' | |
path = require 'path' | |
AdmZip = require('adm-zip') | |
xml2js = require('xml2js') | |
rimraf = require 'rimraf' | |
unzip = require 'unzip' | |
expect = require('chai').expect |
OlderNewer