👷♂️
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
require.config({ | |
baseUrl: '/backbone-tests/', | |
paths: { | |
'jquery' : '/app/libs/jquery', | |
'underscore' : '/app/libs/underscore', | |
'backbone' : '/app/libs/backbone', | |
'mocha' : 'libs/mocha', | |
'chai' : 'libs/chai', | |
'chai-jquery' : 'libs/chai-jquery', | |
'models' : '/app/models' |
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] | |
public class InboundRouteTests | |
{ | |
private Uri baseUri; | |
private HttpConfiguration config; | |
[TestFixtureSetUp] | |
public void FixtureSetUp() | |
{ | |
baseUri = new Uri("https://tests.local"); |
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
var UserModel = function () { | |
var self = this; | |
// Somewhat sophisticated loading flag that supports parallel loading of multiple endpoints. | |
self.loading = ko.observableArray(); | |
// Encapsulating the entire form in a property, so we can use ko.mapping in a safe way. | |
// If properties were directly on the model, we'd have to re-init model every time we | |
// load data, which could lead to unwanted consequences. | |
self.user = ko.observable(); |
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
public HttpContextBase FakeHttpContext() { | |
var context = new Mock<HttpContextBase>(); | |
var files = new Mock<HttpFileCollectionBase>(); | |
var request = new Mock<HttpRequestBase>(); | |
var response = new Mock<HttpResponseBase>(); | |
var session = new Mock<HttpSessionStateBase>(); | |
var server = new Mock<HttpServerUtilityBase>(); | |
var user = new Mock<IPrincipal>(); | |
var identity = new Mock<IIdentity>(); | |
request.Setup(req => req.ApplicationPath).Returns("~/"); |
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
# For a description of the file format, see the Users Guide | |
# http://cygwin.com/cygwin-ug-net/using.html#mount-table | |
D:/Users/agross/Downloads /scratch ntfs binary,posix=0,noacl 0 0 | |
D:/Users/agross/Projekte/GROSSWEBER /gw ntfs binary,posix=0,noacl 0 0 | |
D:/Users/agross/Coding/.NET /play ntfs binary,posix=0,noacl 0 0 | |
D: /d ntfs binary,posix=0,noacl 0 0 | |
C: /c ntfs binary,posix=0,noacl 0 0 | |
C:/Cygwin/bin /usr/bin ntfs binary,posix=0,noacl 0 0 | |
C:/Cygwin/lib /usr/lib ntfs binary,posix=0,noacl 0 0 |
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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Starting migration."); | |
using (var store = new DocumentStore { ConnectionStringName = "RavenDb" }.Initialize()) | |
{ | |
using (var session = store.OpenSession()) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition.Hosting; | |
using Lucene.Net.Documents; | |
using Raven.Abstractions.Data; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; | |
using Raven.Client.Linq; |
NewerOlder