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
exports.listObjects = { | |
"IsTruncated": true, | |
"Contents": [ | |
{ | |
"Key": "Folder.01/", | |
"LastModified": "2018-02-12T08:28:22.000Z", | |
"ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", | |
"Size": 0, | |
"StorageClass": "STANDARD" | |
}, |
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
const stubs = require('./aws-stubs'); | |
const AWS = {}; | |
AWS.config = { | |
setPromisesDependency: (arg) => {} | |
}; | |
AWS.S3 = function() { | |
} |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Jest Tests", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js", | |
"stopOnEntry": false, | |
"args": ["--runInBand"], |
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
const path = require("path"); | |
const gulp = require('gulp'); | |
const zip = require('gulp-zip'); | |
const run = require('gulp-run'); | |
const runSequence = require('run-sequence'); | |
const log = require('fancy-log'); | |
const AWS = require('aws-sdk'); | |
const s3 = new AWS.S3({apiVersion: '2006-03-01'}); |
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
const gulp = require('gulp'); | |
const run = require('gulp-run'); | |
const replace = require('gulp-replace'); | |
const runSequence = require('run-sequence'); | |
const log = require('fancy-log'); | |
const AWS = require('aws-sdk'); | |
const s3 = new AWS.S3({apiVersion: '2006-03-01'}); | |
const s3Options = { |
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
"scripts": { | |
"start": "react-scripts start" | |
}, |
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
grunt.registerTask('parse', function(){ | |
grunt.log.writeln('About to parse the assembly files'); | |
var assemblyFile = grunt.file.read('./SharedAssemblyInfo.cs'); | |
var lines = assemblyFile.split('\n'); | |
var version = ''; | |
var versionParts = ''; | |
var searchString = 'AssemblyVersion'; |
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
public class Foo{ | |
public void Bar(){ | |
var fieldValue = new { | |
ParentKey = "something", | |
SectionKey = "section", | |
FieldKey = "field", | |
LabelKey = "label" | |
} : IFieldValue; | |
} |
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
private const string BaseFilePath = "JsonSerialization/json/"; | |
public async static Task<string> DirectorySearchJson() | |
{ | |
return await ReadFile(BaseFilePath + "DirectorySearchResults.json.txt"); | |
} | |
private async static Task<string> ReadFile(string fileName) | |
{ | |
var jsonFile = Path.Combine(Package.Current.InstalledLocation.Path, fileName); |
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
[TestMethod] | |
public async Task Can_Create_Contact_Info_Email_Section_Correctly() | |
{ | |
var json = await FileLoaders.DirectorySearchJson(); | |
var searchResponse = JsonConvert.DeserializeObject<DirectorySearchResponse>(json); | |
} |
NewerOlder