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
<!DOCTYPE html> | |
<head> | |
<link href="bootstrap.min.css" rel="stylesheet"> | |
<!-- Add IntroJs styles --> | |
<link href="bootstrap-responsive.min.css" rel="stylesheet"> | |
<link href="introjs.css" rel="stylesheet"> | |
<!-- end IntroJs styles --> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<head> | |
<link href="bootstrap.min.css" rel="stylesheet"> | |
<!-- Add IntroJs styles --> | |
<link href="bootstrap-responsive.min.css" rel="stylesheet"> | |
<link href="introjs.css" rel="stylesheet"> | |
<!-- end IntroJs styles --> | |
</head> | |
<body> |
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
// http://stackoverflow.com/questions/14773269/injecting-a-mock-into-an-angularjs-service | |
angular.module('myModule') | |
.factory('myService', function (myDependency) { | |
return { | |
useDependency: function () { | |
return myDependency.getSomething(); | |
} | |
}; | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Markers for column type series - HighCharts example</title> | |
<script type='text/javascript' src='./js/jquery-1.9.1.js'></script> | |
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 getContrastYIQ(hexcolor){ | |
var r = parseInt(hexcolor.substr(0,2),16); | |
var g = parseInt(hexcolor.substr(2,2),16); | |
var b = parseInt(hexcolor.substr(4,2),16); | |
var yiq = ((r*299)+(g*587)+(b*114))/1000; | |
return (yiq >= 128) ? 'black' : 'white'; | |
} |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
-webkit-box-sizing: border-box; |
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 System.Collections.Generic; | |
using System.ComponentModel.Composition; | |
using CarRental.Business.Bootstrapper; | |
using CarRental.Business.Entities; | |
using CarRental.Data.Contracts; | |
using Core.Common.Contracts; | |
using Core.Common.Core; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Moq; |
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
public interface IIdentifiableEntity | |
{ | |
int EntityId { get; set; } | |
} |
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
public interface IDataRepository | |
{ | |
} | |
public interface IDataRepository<T> : IDataRepository | |
where T : class, IIdentifiableEntity, new() | |
{ | |
T Add(T entity); |