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
[ | |
{ | |
"Name": "Super Admin", | |
"Description": "God of Roadkill", | |
"IOCapabilities": [ | |
"View", | |
"Upload", | |
"DeleteFile", | |
"DeleteFolder" | |
], |
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 NUnit.Framework; | |
[TestFixture] | |
public class BankHolidayCalculatorTests | |
{ | |
[Test] | |
[TestCase("Jan 1 2015")] | |
[TestCase("Jan 1 2016")] | |
[TestCase("Jan 2 2017")] |
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
static void Main(string[] args) | |
{ | |
Process process = new Process(); | |
process.StartInfo = new ProcessStartInfo(@"C:\Users\chris\Documents\visual studio 2013\Projects\RunNunitTest\packages\NUnit.Runners.2.6.3\tools\nunit-console.exe", | |
@"D:\projects\roadkill\src\Roadkill.Tests\bin\Debug\Roadkill.Tests.dll " + | |
"/noxml " + | |
"/include:Unit"); | |
process.StartInfo.RedirectStandardOutput = true; | |
process.StartInfo.UseShellExecute = false; | |
process.Start(); |
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
# Project->Settings->Environment->Install script | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
cinst GoogleChrome | |
cinst gb.MongoDB |
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
# Project->Settings->Build->Before build script | |
(gc lib\Configs\connectionStrings.dev.config).replace('Server=(local);Integrated Security=true;Connect Timeout=5;database=Roadkill','Server=(local)\SQL2012SP1;Database=master;User ID=sa;Password=Password12!') | Out-File lib\Configs\connectionStrings.dev.config | |
(gc src\Roadkill.Tests\Setup\SqlExpressSetup.cs).replace('Server=(local);Integrated Security=true;Connect Timeout=5;database=Roadkill','Server=(local)\SQL2012SP1;Database=master;User ID=sa;Password=Password12!') | Out-File src\Roadkill.Tests\Setup\SqlExpressSetup.cs |
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 Extensions | |
{ | |
public static string GetFingerPrint(this UrlHelper helper) | |
{ | |
byte[] hash = SHA256.Create().ComputeHash(Encoding.Unicode.GetBytes(GetLastWriteTime())); | |
return HttpServerUtility.UrlTokenEncode(hash); | |
} | |
/// <summary> | |
/// |
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 string AssemblyVersion | |
{ | |
get | |
{ | |
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); | |
} | |
} |
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 Configuration | |
{ | |
public static void ConfigureForHttp<T>(ServiceConfiguration config) | |
{ | |
var existingBehaviour = config.Description.Behaviors.FirstOrDefault(x => x is AspNetCompatibilityRequirementsAttribute); | |
if (existingBehaviour != null) | |
{ | |
config.Description.Behaviors.Remove<AspNetCompatibilityRequirementsAttribute>(); | |
} | |
config.Description.Behaviors.Add(new AspNetCompatibilityRequirementsAttribute { RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed }); |
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
<system.serviceModel> | |
<behaviors> | |
<serviceBehaviors> | |
<behavior name="MyNameSpace.ServiceBehavior"> | |
<serviceMetadata httpGetEnabled="true" /> | |
<serviceDebug includeExceptionDetailInFaults="true" /> | |
</behavior> | |
<behavior name=""> | |
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> | |
<serviceDebug includeExceptionDetailInFaults="false" /> |
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
<system.serviceModel> | |
<behaviors> | |
<serviceBehaviors> | |
<behavior name="MyNameSpace.ServiceBehavior"> | |
<serviceMetadata httpGetEnabled="true" /> | |
<serviceDebug includeExceptionDetailInFaults="true" /> | |
</behavior> | |
</serviceBehaviors> | |
</behaviors> | |
</system.serviceModel> |
OlderNewer