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
/// <summary> | |
/// A helper class for Umbraco 7+ to get the currently logged on back office user from a non-backoffice context. | |
/// </summary> | |
public static class BackofficeUserHelper | |
{ | |
const string BackofficeIdentityKey = "UmbracoBackofficeIdentity"; | |
/// <summary> | |
/// The <c>UmbracoBackOfficeIdentity</c> representing the currently logged on Back Office user | |
/// </summary> |
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
[TestClass] | |
public class CacheTests | |
{ | |
private Cache testCache; | |
public CacheTests() | |
{ | |
this.testCache = new Cache(); | |
} |
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
[TestClass] | |
public class CacheTests | |
{ | |
[TestMethod] | |
public void TestCountReturnsTwoWhenTwoOjectsAdded() | |
{ | |
var testContext = new TestContext(); | |
var testData1 = new object(); | |
var testData2 = new object(); |