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 System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Abstractions; | |
using Microsoft.AspNetCore.Mvc.ModelBinding; | |
using Microsoft.AspNetCore.Mvc.Razor; | |
using Microsoft.AspNetCore.Mvc.Rendering; | |
using Microsoft.AspNetCore.Mvc.ViewFeatures; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="xml" indent="yes" standalone="yes"/> | |
<xsl:template match="/CoverageSession/Modules"> | |
<coverage> | |
<xsl:for-each select="Module[not(@skippedDueTo)]"> | |
<module name="{ModuleName}"> | |
<xsl:for-each select="Classes/Class"> | |
<xsl:if test="count(Methods/Method) > 0"> | |
<class name="{FullName}"> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a ="http://microsoft.com/schemas/VisualStudio/TeamTest/2006" xmlns:b ="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" > | |
<xsl:output method="xml" indent="yes" /> | |
<xsl:template match="/"> | |
<testsuites> | |
<xsl:variable name="buildName" select="//a:TestRun/@name"/> | |
<xsl:variable name="numberOfTests" select="count(//a:UnitTestResult/@testId) + count(//b:UnitTestResult/@testId)"/> | |
<xsl:variable name="numberOfFailures" select="count(//a:UnitTestResult/@outcome[.='Failed']) + count(//b:UnitTestResult/@outcome[.='Failed'])" /> | |
<xsl:variable name="numberOfErrors" select="count(//a:UnitTestResult[not(@outcome)]) + count(//b:UnitTestResult[not(@outcome)])" /> | |
<xsl:variable name="numberSkipped" select="count(//a:UnitTestResult/@outcome[.!='Passed' and .!='Failed']) + count(//b:UnitTestResult/@outcome[.!='Passed' and .!='Failed'])" /> |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" cdata-section-elements="message stack-trace"/> | |
<xsl:template match="/"> | |
<testsuites> | |
<xsl:for-each select="//assembly"> | |
<testsuite> | |
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute> | |
<xsl:attribute name="tests"><xsl:value-of select="@total"/></xsl:attribute> | |
<xsl:attribute name="failures"><xsl:value-of select="@failed"/></xsl:attribute> |
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
if $(ConfigurationName) == Debug ( | |
copy /Y "$(ProjectDir)..\Helpers\bin\$(ConfigurationName)\Helpers.exe" "$(TargetDir)" | |
copy /Y "$(TargetPath).config" "$(TargetDir)Helpers.exe.config" | |
$(TargetDir)Helpers.exe "$(TargetPath)" "Web.Helpers.Web.BundleHelper" "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
[Serializable] | |
public class XmlType<T> : MutableType | |
where T : class | |
{ | |
public XmlType() | |
: base(new XmlSqlType()) | |
{ | |
} |
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
open Fake.OpenCoverHelper | |
let buildDir = "./build/" | |
let coverageDir = buildDir + "coverage/" | |
let testsDir = buildDir + "tests/" | |
Target "RunNUnitTests" (fun _ -> | |
let assembliesToTest = (" ", (!! (buildDir + "/*.Tests.dll"))) |> System.String.Join | |
CreateDir coverageDir | |
CreateDir testsDir |
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
Some parameter | Other parameter | Last parameter | |
---|---|---|---|
CONST | 123456 | 12.45 |
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
module shared { | |
"use strict"; | |
export interface IMapOptions { | |
Properties: { [key: string]: (x: any) => any }; | |
Ignore?: string[]; | |
PropertyNames?: { [key: string]: string }; | |
} | |
function includeProperty(mapOptions: IMapOptions, prop: string) { |
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
<div> | |
<input type="text" ng-model="ctrl.SomeProperty"><br> | |
<input type="text" ng-model="ctrl.SomeModel.SomeField" ng-show="ctrl.ShouldShow()"><br> | |
</div> | |
// Usage of the directive: | |
<my-directive model="Whatever"></my-directive> |
NewerOlder