- Should be self-describing
- Devs want to see examples quickly, not read for hours on end just to figure out basics
- RPC -> REST -> HATEOAS
- Avoid dogma of REST vs the world
- Start with nouns, not verbs
public class when_I_roll_a_game_with_even_a_single_strike_and_try_to_roll_past_ten_frames : concerns<BowlingGame> | |
{ | |
[Specification] | |
public void then_I_get_an_exception() | |
{ | |
Assert.Throws<ApplicationException>(() => | |
{ | |
var game = build_up(); | |
game.Roll(10); | |
9.times(() => |
To run as a service on a Windows machine, do the following:
Assuming you have Git installed:
git clone https://github.com/versionone/VersionOne.Client.Requestor.git
cd VersionOne.Client.Requestor
to change into the newly cloned repository directory.config.js
and fields.js
files to your needs.package.json
file such that the scripts
property looks like this (simply prefixing node to the "start"
sub-property):This is a work in progress. As this evolves, we update this narrative.
Given you have a GitHub repository that has commits matching the VersionOne asset mention pattern, like S-12345, D-00312, etc, and you want to start seeing those correlated with those assets inside VersionOne's asset detail view, then:
namespace VersionOne.Utility.Functional | |
open System.Net | |
open System | |
open System.IO | |
open Newtonsoft.Json | |
open Newtonsoft.Json.Linq | |
module Web = |
//client only code | |
Template.teams.teams = function () { | |
return Teams.find(); | |
}; | |
Template.teams.events({ | |
'click .spin': function() { | |
Meteor.call('spin'); | |
} |
postDigest = (shouldBehaveThusly) -> | |
request(app).post("/api/digest", "myfirstdigest").end shouldBehaveThusly | |
getDigest = (path, shouldBehaveThusly) -> | |
request(app).get(path).end shouldBehaveThusly | |
chai = require("chai") | |
should = chai.should() | |
express = require("express") | |
app = express() | |
chai = require("chai") | |
sinon = require("sinon") |
chai = require("chai") | |
should = chai.should() | |
eventStoreEvnironment = require("./eventStoreEnvironment.js") | |
describe "projection digests-by-id", -> | |
data = require("./digests") | |
setEvents data.digests | |
require "../../projections/digests-by-id" | |
it "should partition into two streams", (done) -> | |
getStreamsInCategoryCount("digest-").should.equal 2 | |
done() |
{ | |
"version": 3, | |
"nodes": [ | |
{ | |
"id": "59CB3280-D4A9-4C64-82FE-F8FE8D080CBB", | |
"lastModified": "2015-01-15T08:57:07.558-05:00", | |
"name": "CommiStream", | |
"type": "Project" | |
}, | |
{ |
var worldRows = [ | |
'cegccccccccccccgcc', | |
'ctttttcccccctttttc', | |
'ctgccccccccccccgtc', | |
'ctttttcccccctttttc', | |
'ccccctccttcctccccc', | |
'cctcctccttcctcctcc', | |
'ccccctcccccctccccc', | |
'ctcccccccccccccctc', | |
'ctcttcttttttcttctc', |