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
public GroupControllerTests() | |
{ | |
// do some other setup stuff first | |
Mock<WebSecurity> webSecurity = new Mock<WebSecurity>(null, null); | |
// only need a couple of properties, enough to build a string and stuff | |
var currentUser = Mock.Of<IUser>(u => | |
u.IsApproved | |
&& u.Name == Utility.RandomString() |
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
// functional demo at http://www.usc.edu.au/open-day#sessions | |
(function() { | |
'use strict' | |
function hubVideo() { | |
var video = { | |
restrict: 'E', | |
replace: true, | |
scope: { |
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
namespace Your.Namespace { | |
class CustomIndexer : UmbracoContentIndexer { | |
protected override Dictionary<string, string> GetDataToIndex(XElement node, string type) | |
{ | |
Dictionary<string,string> data = base.GetDataToIndex(node, type); | |
string content = ""; | |
if (data.ContainsKey("archetypeAlias")) |
NewerOlder