credit to http://atomicbytes.azurewebsites.net/machine-fakes-cheat-sheet/
#Nuget Packages
PM>install-package machine.fakes.moq
PM>install-package FluentAssertions
PM>install-package NBuilder
#Vanilla Machine.Specifications
swagger: "2.0" | |
info: | |
description: Sample description | |
version: "1.0.0" | |
title: Sample title | |
host: petstore.swagger.io | |
basePath: /v3 | |
paths: | |
/carts/{cart_id}/product_bundles/{product_bundle_id}/questions: | |
get: |
swagger: "2.0" | |
info: | |
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." | |
version: "1.0.0" | |
title: "Swagger Petstore" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "apiteam@swagger.io" | |
license: | |
name: "Apache 2.0" |
DELETE my_index | |
PUT my_index | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"my_analyzer": { | |
"filter": ["english_stop", "lowercase"], | |
"tokenizer": "my_tokenizer" |
# clear out any previous test data | |
DELETE test*/ | |
# create index 1 | |
POST test.1/test/1 | |
{ | |
"client_id": 9991 | |
} | |
# create index 2 |
# How many of each program types are available? | |
GET programs-han/_search | |
{ | |
"size": 0, | |
"aggs": { | |
"types": { | |
"terms": { | |
"field": "type.keyword", | |
"size": 5 | |
} |
swagger: '2.0' | |
info: | |
version: '1.0.0' | |
title: Swagger Petstore (Simple) | |
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification | |
termsOfService: http://helloreverb.com/terms/ | |
contact: | |
name: Swagger API team | |
email: foo@example.com | |
url: http://swagger.io |
version: "2" | |
services: | |
postgres: | |
image: postgres:9.4 | |
container_name: kong-database | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=kong |
jenkins: | |
image: jenkins | |
ports: | |
- "8080:8080" | |
- "50000:50000" | |
sonarqube: | |
image: sonarqube | |
ports: | |
- "9000:9000" |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
credit to http://atomicbytes.azurewebsites.net/machine-fakes-cheat-sheet/
#Nuget Packages
PM>install-package machine.fakes.moq
PM>install-package FluentAssertions
PM>install-package NBuilder
#Vanilla Machine.Specifications