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
(function () { | |
"use strict"; | |
var bookmarks = []; | |
function init() { | |
} | |
var instanceMembers = { | |
addNews: function (news) { |
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
(function () { | |
"use strict"; | |
var registry = []; | |
function wire(key, constructor) { | |
var object = constructor(this); | |
registry.push({ key: key, object: object }); | |
} |
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 ContactInformationAuctionMessageBuilder : IMailMessageBuilder<ContactInformationAuction> | |
{ | |
private MailMessage mailMessage; | |
private StringBuilder body = new StringBuilder(); | |
public ContactInformationAuctionMessageBuilder() | |
{ | |
mailMessage = new MailMessage(); | |
} |
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
[TestFixture] | |
class MailBuilderTest | |
{ | |
[Test] | |
public void TestContactInformation() | |
{ | |
// arrange | |
ContactInformation contactInformation = new ContactInformation() | |
{ | |
FirstName = "Homero", |
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
(function () { | |
"use strict"; | |
function request() { | |
var WNSRegistrationUrl = ApplicationConfiguration.getServiceRootSite() + "/MyService/Register"; | |
var notificationChannel = Windows.Networking.PushNotifications.PushNotificationChannelManager.createPushNotificationChannelForApplicationAsync(); | |
notificationChannel | |
.then(function (channel) { |
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
[TestFixture] | |
class TileNotificationBuilderTest | |
{ | |
[Test] | |
public void EmptyReturnEmpty() | |
{ | |
TileNotificationBuilder builder = new TileNotificationBuilder(); | |
Assert.That(builder.Build(), Is.StringContaining("<text id=\"1\"></text>")); | |
} |
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
// This function updates application controls once a navigation | |
// has completed. | |
navigated: function () { | |
// Do application specific on-navigated work here | |
var backButton = this.pageElement.querySelector("header[role=banner] .win-backbutton"); | |
var forceShowBack = false; | |
if (backButton) { | |
// Si estoy en una sección, entonces el back es a la home | |
if (nav.location == "pages/section/groupDetailPage.html" || nav.location == "pages/video/landingVideoSection.html") { |
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
(function () { | |
"use strict"; | |
function pinByElementAsync(element, newTileID, newTileShortName, newTileDisplayName, tileActivationArguments) { | |
// Sometimes it's convenient to create our tile and pin it, all in a single asynchronous call. | |
// We're pinning a secondary tile, so let's build up the tile just like we did in pinByElement | |
var uriLogo = new Windows.Foundation.Uri("ms-appx:///images/30x30.png"); | |
//var uriSmallLogo = new Windows.Foundation.Uri("ms-appx:///images/pin/smallLogoSecondaryTile-sdk.png"); |
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
(function () { | |
"use strict"; | |
var feedNewsMapper; | |
// constructor function | |
function init() { | |
feedNewsMapper = new Mappers.FeedNewsMapper; | |
} |
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
ready: function (element, options) { | |
currentSection = options.item; | |
setHeader(element, currentSection.BackColor); | |
setAppbarButton(currentSection); | |
this.updateLayout(element, Windows.UI.ViewManagement.ApplicationView.value); | |
buildNews(feedToShow); | |
}, |