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
- Assume most recent language standard are available (ES6) | |
- We expect good performance. | |
- if missing more requirements details, just make reasonable assumptions of | |
a your own. | |
- Solution must be simple and compact. | |
No defensive coding, no comments, no unrequested features. | |
Only one file 10-20 lines of code | |
- Work only inside Google Docs: no external editor/IDE/debugger, no copy-paste | |
to/from such an editor. We must see the flow of how you write the code. |
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
<# | |
.SYNOPSIS | |
You can use this script to easly transform any XML file using XDT. | |
To use this script you can just save it locally and execute it. The script | |
will download it's dependencies automatically. | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter( | |
Mandatory=$true, |
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
using Machine.Specifications; | |
using NUnit.Framework; | |
using StructureMap; | |
namespace StructuremapTests | |
{ | |
// structuremap version 3.1.6.186, Machine Specification 0.9.3, Machine.Specifications.Should 0.8.0 | |
class Program | |
{ | |
[Test] |
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
using System; | |
using NUnit.Framework; | |
using StructureMap; | |
namespace StructureMapTests | |
{ | |
public class SMTests | |
{ | |
[Test] | |
public void WillUseLazyInit() |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
package com.example.smartphoneappdevelopguide.objectoriented.postsystem; | |
import com.example.smartphoneappdevelopguide.objectoriented.postsystem.service.Center; | |
import com.example.smartphoneappdevelopguide.objectoriented.postsystem.town.Address; | |
import com.example.smartphoneappdevelopguide.objectoriented.postsystem.town.House; | |
import com.example.smartphoneappdevelopguide.objectoriented.postsystem.town.HouseMap; | |
import com.example.smartphoneappdevelopguide.objectoriented.postsystem.user.Customer; | |
public class Main { |
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
/// <summary> | |
/// Automapper will ignore lacking or excessed props when doing mapping | |
/// </summary> | |
public class AutoMapperTests | |
{ | |
/// <summary> | |
/// Automapper will ignore outer props of destination entity as it has more props than the source one. Props that are not matched will be | |
/// populated with default values | |
/// </summary> | |
[Test] |
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 EFMaterializationTests | |
{ | |
/// <summary> | |
/// Domain entity (WcChallengeDomain in our case) should have all properties mentioned on materialization of EF6 and below. In this case optional field Description is missing | |
/// on materialization (Select with new WcChallengeDomain) and EF doesn't support it | |
/// </summary> | |
[Test] | |
public void EF6WillThrowExcOnMaterializationOfDomainEntityWithMissingField() | |
{ | |
//arrange |