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
<%@ Control Language="C#" AutoEventWireup="true" Inherits="This.Web.usercontrols.Administrative.UCommerceDataTypesCategory" %> | |
<asp:UpdateProgress ID="UpdateProgress1" | |
runat="server" | |
AssociatedUpdatePanelID="CategoryPanel"> | |
<ProgressTemplate> | |
<img src="/umbraco/images/throbber.gif" alt="Loading"/> | |
</ProgressTemplate> | |
</asp:UpdateProgress> | |
<asp:UpdatePanel runat="server" UpdateMode="Always" ID="CategoryPanel"> | |
<ContentTemplate> |
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
[TestFixture] | |
public class BusinessTests | |
{ | |
private IRepository<Entity> repo; | |
private ConcreteService service; | |
[SetUp] | |
public void SetUp() | |
{ | |
repo = MockRepository.GenerateStub<IRepository<Entity>>(); |
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 ControlRenderer : IDisposable | |
{ | |
public static string RenderContents(Control control) | |
{ | |
using (var renderer = new ControlRenderer(control)) | |
{ | |
return renderer.Render(); | |
} | |
} |
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
[TestFixture] | |
public class TestStub: UmbracoTestBase | |
{ | |
[SetUp] | |
public void Setup() | |
{ | |
SetupFakeEnvironment(); | |
SetupRootContent(); | |
} |
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; | |
public class RandomPassword | |
{ | |
private static Random random = new Random(); | |
public static string Create(int length = 8, float charRatio = .8f) | |
{ | |
string password = ""; |
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.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace AHttpClientTestWrapper | |
{ | |
public class HttpClientWrapper |
NewerOlder