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
[Test] | |
public void SetModel_ServiceResultIsGreaterThanThree_ReturnsThreeBeers() | |
{ | |
//Arrange | |
view.Setup(v => v.Model).Returns(new BeerCollectionModel()); | |
var beer1 = new Beer { BeerId = 1, Name = "Bigfoot", IsConsumed = false }; | |
var beer2 = new Beer { BeerId = 2, Name = "Yeti", IsConsumed = false }; | |
var beer3 = new Beer { BeerId = 3, Name = "Darkness", IsConsumed = false }; | |
var beer4 = new Beer { BeerId = 4, Name = "Furious", IsConsumed = 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
<div id="tabs"> | |
<ul> | |
<li><a href="#tabs-1">Nunc tincidunt</a></li> | |
<li><a href="#tabs-2">Proin dolor</a></li> | |
<li><a href="#tabs-3">Aenean lacinia</a></li> | |
</ul> | |
<div id="tabs-1"> | |
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p> | |
</div> | |
<div id="tabs-2"> |
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
$(document).ready(function () { | |
$('#tabs').tabs().show(); | |
}); |
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
Custom event details: | |
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. | |
Event code: 3005 | |
Event message: An unhandled exception has occurred. | |
Event time: 11/17/2010 1:36:03 PM | |
Event time (UTC): 11/17/2010 8:36:03 PM | |
Event ID: a0542d8e2e0243c7b58522e24945869d | |
Event sequence: 62 | |
Event occurrence: 61 |
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
$('#submit-items').click(function(e) { | |
e.preventDefault(); | |
if ($('#Form').validate().form()) { | |
var items = new Array(); | |
$('#income-list li').each(function(intIndex) { | |
var $item = $(this); | |
var incomeItem = { | |
CategoryId: $item.data('categoryId'), | |
Amount: $item.data('amount') | |
}; |
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
var targetUrl = 'http://site.to.search.com/?query=' + encodeURIComponent(searchPhrase); // important to encode user input | |
$.get(targetUrl, function (res) { // relies on xdomainajax plugin | |
var totalResults = $(res.responseText).find('#parse .the-results .per-usual').html(); | |
}); | |
window.open(targetUrl); |
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
<asp:DropDownList runat="server" ID="PagesList" /> | |
this.PagesList.DataSource = TabController.GetPortalTabs(this.PortalId, -1, true, Localization.GetString("DefaultPagesListItem.Text", this.LocalResourceFile), true, false, false, true, true); | |
this.PagesList.DataValueField = "TabID"; | |
this.PagesList.DataTextField = "IndentedTabName"; | |
this.PagesList.DataBind(); |
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
<ul class="dnnActionsMenu"> | |
<li class="first last"><span>Manage</span><ul> | |
<li class="first"><span>Edit</span><ul> | |
<li class="first"><a href="javascript:dnnModal.show('http://core.dnndev.me/GettingStarted/tabid/55/ctl/Edit/mid/362/Default.aspx?popUp=true&SkinSrc=[G]Skins/_default/popUpSkin&ContainerSrc=[G]Containers/_default/popUpContainer',/*showReturn*/false,550,950)">Edit Content</a></li> | |
<li class=" last"><a href="javascript:dnnModal.show('http://core.dnndev.me/GettingStarted/tabid/55/ctl/MyWork/mid/362/Default.aspx?popUp=true&SkinSrc=[G]Skins/_default/popUpSkin&ContainerSrc=[G]Containers/_default/popUpContainer',/*showReturn*/false,550,950)">My Work</a></li> | |
</ul> | |
</li> | |
<li class=""><span>Admin</span><ul> | |
<li class="first"><a href="javascript:if(dnnModal.show('http://core.dnndev.me/GettingStarted/tabid/55/ctl/ExportModule/moduleid/362/Default.aspx?popUp=true&SkinSrc=[G]Skins/_default/popUpSkin&ContainerSrc=[G]Containers/_default/popUpContainer',/* |
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
<html> | |
<head></head> | |
<body> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> | |
<script type="text/javascript"> | |
console.log('loaded jQuery and jQuery UI'); | |
console.log('Draggable is a function: ' + $.isFunction($().draggable)); | |
</script> |
OlderNewer