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 urlRouter = require('./../../infrastructures/url-router.js'); | |
var resourceLocator = require('./../../infrastructures/resource-locator.js'); | |
require('./../../resources/resources-registrar.js'); | |
var specInitialiser = require('./../spec-initialiser.js'); | |
describe('Products Resource', function(){ | |
var timeOutCall = 200; | |
var resolveResource = function(requestUrl, requestMethod){ | |
var resolvedRequest = urlRouter.first(requestUrl, requestMethod); | |
expect(resolvedRequest).not.toBe(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
using System.Web.Http.Dependencies; | |
namespace Xtremecode.Infrastructure.Library.Di | |
{ | |
public class DependencyResolver : DependencyScope, IDependencyResolver | |
{ | |
public DependencyResolver() : base(DependencyInjector.GetKernel()) { } | |
public IDependencyScope BeginScope() | |
{ |
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
Ext.application({ | |
appFolder: '/Extjs/Application', | |
controllers: ['HomeController'], | |
name: AppNamespace, | |
launch: function() { | |
Ext.create('Ext.container.Viewport', { | |
layout: 'fit', | |
items: [{ | |
xtype: 'specialOffers' |
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
@model SomeModel | |
@using (Html.BeginForm("Submit", "Home", FormMethod.Post, new { enctype ="multipart/form-data" })) | |
{ | |
@Html.EditorForModel() | |
<label for="ImagePreview">Image Preview</label> | |
<p> | |
<output id="image-box"></output> | |
</p> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceConfiguration serviceName="DemoApp" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0"> | |
<Role name="DemoApp_WebRole"> | |
<Instances count="1" /> | |
<ConfigurationSettings> | |
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" /> | |
<!-- The new config setting --> | |
<Setting name="DataConnectionString" value="UseDevelopmentStorage=true" /> | |
</ConfigurationSettings> | |
</Role> |
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.Diagnostics; | |
using System.IO; | |
using System.Web; | |
using System.Web.Mvc; | |
using DemoApp.Models; | |
using Infrastructure.WebMvc; | |
namespace DemoApp.Controllers |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<appSettings> | |
<add key="AWSAccessKey" value="AAOipiapsoif23oi34lk6"/> | |
<add key="AWSSecretKey" value="LKKUkjjkLIupoiYuhTYiuGyg"/> | |
<add key="AWSRegion" value="ap-southeast-1" /> | |
</appSettings> | |
</configuration> |
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 Amazon.S3.Model; | |
using Amazon.S3.Transfer; | |
namespace GuestBook.Repository.Aws.S3 | |
{ | |
class GuestBookImageRepository : S3RepositoryBase, IGuestBookImageRepository | |
{ |
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
/** | |
* HomeController | |
* | |
* @module :: Controller | |
* @description :: A set of functions called `actions`. | |
* | |
* Actions contain code telling Sails how to respond to a certain type of request. | |
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL) | |
* | |
* You can configure the blueprint URLs which trigger these actions (`config/controllers.js`) |
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
module.exports.routes = { | |
// By default, your root route (aka home page) points to a view | |
// located at `views/home/index.ejs` | |
// | |
// (This would also work if you had a file at: `/views/home.ejs`) | |
'/': { | |
controller: 'HomeController', | |
action: 'hello_world' | |
} |
OlderNewer