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 http = require('http'), | |
httpSignature = require('http-signature'), | |
crypto = require('crypto'); | |
var data = JSON.stringify({ foo: 'bar' }); | |
var md5 = crypto.createHash('md5'); | |
md5.update(data); | |
var options = { | |
host: 'localhost', |
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 Nustache.Core; | |
using System; | |
using System.IO; | |
using System.Text; | |
public static class TemplateExtensions | |
{ | |
public static Template Load(this Template template, string html) | |
{ | |
using (var reader = new StringReader(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
var numonly = /\d{1,12}/; | |
// personalid.verify | |
// ------------------- | |
// Takes a personal number and checks it. | |
// true - personal number is well formed and complete | |
// false - personal number is not well formed | |
// null - personal number is well formed but not complete | |
var verify = function(num) { |
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() { | |
if(navigator.appVersion.indexOf('MSIE 8') > 0) { | |
var _slice = Array.prototype.slice; | |
Array.prototype.slice = function() { | |
if(this instanceof Array) { | |
return _slice.apply(this, arguments); | |
} else { | |
var result = []; | |
var start = (arguments.length >= 1) ? arguments[0] : 0; | |
var end = (arguments.length >= 2) ? arguments[1] : this.length; |
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
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | |
<s:Header> | |
<h:KLSCredentials xmlns:h="http://www.fordonsdata.se/kls/1.0/" xmlns="http://www.fordonsdata.se/kls/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<userName>username</userName> | |
<password>password</password> | |
</h:KLSCredentials> | |
</s:Header> | |
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<createLeads xmlns="http://www.fordonsdata.se/kls/1.0/"> | |
<Leads xmlns="http://www.fordonsdata.se/kls/1.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
using System; | |
using Toyota.Api.KobraLeads.KobraWS; | |
namespace Toyota.Api.KobraLeads.Services | |
{ | |
public class KobraLeadsService | |
{ | |
public void GenerateLead(int recieverId, RecieverType recieverType, DateTime expiryDate, LeadType leadType = LeadType.TestDrive, string carType = CarType.PASSENGER_CAR, Priority priority = Priority.Hot) | |
{ | |
var credentials = new KLSCredentials { userName = "username", password = "password" }; |
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
[ | |
{ | |
"id": "auris-1-6-5-d-komfort-m-n-touch-fullmap-skinnkladsel", | |
"name": "Auris 1.6 5-D Komfort M/M (Touch) (Fullmap, Skinnklädsel)", | |
"modelId": "Auris", | |
"modelName": "auris", | |
"price": 235650, | |
"leftToSpend": 14350, | |
"corporateCost": 3560, | |
"taxableValue": 6120, |
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
Egenskap: Servicebokning - inte inloggad | |
För att en användare som inte är MT-medlem ändå ska kunna använda servicebokningen | |
ska MT låta henne öppna orginalservicebokningsformuläret | |
Scenario: Öppna servicebokningsformulär | |
Givet att jag inte är inloggad | |
Och jag går till servicebokningssidan | |
Så ska jag se en IFrame med orginalbokningsflödet |
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
Egenskap: Välj verkstad | |
För att en användare som är MT-medlem ska slippa fylla i verkstadsuppgifter i servicebokningen | |
ska MT låta henne välja verkstad och skicka denna till servicebokningsformuläret | |
Bakgrund: | |
Givet att följande verkstäder finns i TOMS | |
| Namn | Adress | Postnummer | Stad | Telefonnummer | Lat | Lon | | |
| EUROPEISKA MOTOR, TOYOTA CENTER | LIDINGÖVÄGEN 75 | 115 41 | STOCKHOLM | 08-585 621 40 | | | | |
| TOYOTA CENTER METRO AUTO GRUPPEN | ELLIPSVÄGEN 4 | 141 07 | HUDDINGE | 08-706 72 50 | | | |
NewerOlder