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 static class TestHelpers | |
{ | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, StringComparison.Ordinal, DiffStyle.Full, Console.Out, string.Empty); | |
} | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, string message) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, StringComparison.Ordinal, DiffStyle.Full, Console.Out, message); |
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
[WebMethod(true)] | |
public string GetMessages(string psUserId) | |
{ | |
List<JxMessage> messages = new List<JxMessage>(); | |
// .... do some logic like get the message list | |
// Send it back as JSON | |
return CxJSONHelper.Serialize(messages); | |
} |
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.Collections.ObjectModel; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Drawing; | |
using System.IO; | |
using System.Drawing.Imaging; | |
// | |
using Ideastrike; |
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
On Error Resume Next | |
For Each objItem in colItems | |
' Create an instance of COMAdmin Catalog | |
set cat = CreateObject( "COMAdmin.COMAdminCatalog" ) | |
' Reference the Applications Collection | |
Set apps = cat.GetCollection("Applications") | |
' Retrieve the data | |
apps.Populate | |
NewerOlder