This file contains hidden or 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
Server.RunAdminCommand( | |
new CommandDocument( | |
new Dictionary<string, object> | |
{ | |
{"setParameter", 1}, | |
{"notablescan", false} | |
})); |
This file contains hidden or 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; | |
namespace RsaKeyConverter.Converter | |
{ | |
public static class BytesExtensions | |
{ | |
public static string ToBase64(this byte[] bytes) | |
{ | |
return Convert.ToBase64String(bytes); | |
} |
This file contains hidden or 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.Configuration; | |
using System.IdentityModel.Tokens; | |
using System.Linq; | |
namespace Rockend.Bedrock.Web.Admin.Utils.AzureAD | |
{ | |
public class ConfigIssuerNameRegistry : ValidatingIssuerNameRegistry | |
{ | |
static readonly string[] TenantIds = ConfigurationManager.AppSettings["ida:TenentIds"].Split('|').Select(n => n.Trim()).ToArray(); | |
static readonly string[] IssuerKeys = ConfigurationManager.AppSettings["ida:IssuerKeys"].Split('|').Select(n => n.Trim()).ToArray(); |
This file contains hidden or 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
class Page | |
constructor: -> | |
# this is singleton | |
@ptor = protractor.getInstance() | |
get: (relativeUrl, ignoreSync) -> | |
# we want to ignore sync if the | |
# page does not use AngularJS | |
@ptor.ignoreSynchronization = ignoreSync or false | |
@ptor.get @ptor.baseUrl + relativeUrl |
This file contains hidden or 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
class Page | |
constructor: -> | |
# this is singleton | |
@ptor = protractor.getInstance() | |
get: (relativeUrl, ignoreSync) -> | |
# we want to ignore sync if the | |
# page does not use AngularJS | |
@ptor.ignoreSynchronization = ignoreSync or false | |
@ptor.get @ptor.baseUrl + relativeUrl |
This file contains hidden or 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
Page = require 'Utils/Page' | |
class AddOwnerPage extends Page | |
get: -> | |
super "/management/owners/create" |
This file contains hidden or 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
AddOwnerPage = require 'Pages/AddOwnerPage' | |
ViewOwnerPage = require 'Pages/ViewOwnerPage' | |
TestHelper = require 'Utils/TestHelper' | |
describe 'owner', -> | |
# login before each test starts | |
beforeEach -> | |
new LoginPage().loginToPt() | |
# logout after each test finishes |
This file contains hidden or 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
AddOwnerPage = require 'Pages/AddOwnerPage' | |
ViewOwnerPage = require 'Pages/ViewOwnerPage' | |
TestHelper = require 'Utils/TestHelper' | |
TestHelper.doAfterLogin 'owner', (it) -> | |
it 'should be created', -> | |
# test logics here |
This file contains hidden or 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
// export to GLOBAL.config so the test code | |
// can access your settings. i.e. login detail | |
GLOBAL.config = module.exports.config = { | |
login: { | |
username: 'admin', | |
password: 'adminpwd' | |
}, | |
This file contains hidden or 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
<!-- http://lauragentry.com/blog/2010/07/30/how-to-create-a-wordpress-3-0-multisite-network-on-a-windows-server-using-sub-directories/ --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="WordPress Rule 1" stopProcessing="true"> | |
<match url="^index\.php$" ignoreCase="false" /> | |
<action type="None" /> | |
</rule> |
OlderNewer