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
[TestMethod] | |
public void T() | |
{ | |
var entries = new List<DataStreamEntry>(); | |
var stopwatch1 = Stopwatch.StartNew(); | |
for (var i = 0; i < 1500; i++) | |
{ | |
var transfer = new AllocationTransferCreated(i, "asdfasdf", new AllocationIdentifier(1, 1, 2014), DateRange.EndOfMonth(DateTimeOffset.Now), | |
new AllocationIdentifier(1, 2, 2014), DateRange.EndOfMonth(DateTimeOffset.Now), 12, 12, |
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
function Set-EmailServerDetails([Parameter(Mandatory=$true)]$IISSite) | |
{ | |
$EmailServerUserName = Retrieve-OctopusVariableIfExists -Name "EmailServerUserName"; | |
if ($EmailServerUserName -ne $null) | |
{ | |
Set-WebConfigurationProperty -Filter "/system.net/mailSettings/smtp/network" -Name "userName" -PSPath $IISSite -Value $EmailServerUserName | |
Log "EmailServerUserName key has been updated"; | |
} | |
$EmailServerPassword = Retrieve-OctopusVariableIfExists -Name "EmailServerPassword"; |
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.Data; | |
using System.Data.SqlClient; | |
using System.Transactions; | |
using IsolationLevel = System.Transactions.IsolationLevel; | |
namespace ConsoleApplication15 | |
{ | |
class Program | |
{ |
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.Threading; | |
using System.Threading.Tasks; | |
using Xunit; | |
namespace ClassLibrary4 | |
{ | |
public class Test1 //: BaseTest | |
{ |
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.Threading; | |
using System.Threading.Tasks; | |
using Xunit; | |
namespace ClassLibrary4 | |
{ | |
public class Test1 : BaseTest | |
{ |
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.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Xunit; | |
using Xunit.Sdk; | |
namespace XUnitMany | |
{ | |
public class Class1 |
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.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
namespace ConsoleApplication12 | |
{ | |
class Program |
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.Specialized; | |
using System.Diagnostics; | |
using Quartz; | |
using Quartz.Impl; | |
using Quartz.Impl.Triggers; | |
namespace ConsoleApplication5 | |
{ | |
class Program |
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
private static IEnumerable<int> MatchSingleItemInCollection(int value) | |
{ | |
return Arg.Is<IEnumerable<int>>(coll => coll.Single() == value); | |
} |