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"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>Extension Method</Title> | |
<Author>Marc Duiker</Author> | |
<Description>Snippet to create an extension method. |
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
<# | |
This function uploads & installs the specified Sitecore update package to the given $SiteUrl. | |
It uses cURL (http://curl.haxx.se/) to post a request to a Sitecore website which has Sitecore Ship installed. | |
Example usage: | |
.\deploy-sitecorepackage.ps1 mysite.dev "C:\Project\Build\Artifacts\1-mysite-templates.update" 60 300 | |
#> | |
Param( | |
[Parameter(Position=0, 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
<# | |
This script returns the full path of the curl.exe. | |
#> | |
$curlExe = 'curl.exe' | |
$curlPath = Resolve-Path "$PSScriptRoot\..\tools\curl-7.33.0-win64-nossl\$curlExe" # This is the path on the local dev machine. | |
if (-not (Test-Path $curlPath)) | |
{ | |
# Fall-back to use curl.exe located in the same location as the script. | |
if (Test-Path "$PSScriptRoot\$curlExe") |
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"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>Extension Method</Title> | |
<Author>Marc Duiker</Author> | |
<Description>Snippet to create an extension method. |
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
<!-- EMPTY BUCKET CLEANING JOB | |
This job runs at the set interval time and removes item bucket folders that no longer contain any items. | |
This could be cause by deleting an item from a bucket, which has no other items in it. | |
--> | |
<scheduling> | |
<frequency>00:00:05</frequency> | |
<!-- Adjust the interval and frequency as needed to speed things up on a local dev environment. --> | |
<agent type="Sitecore.Buckets.Tasks.RemoveEmptyBucketFolders" method="Run" interval="00:00:10"> | |
<DatabaseName>master</DatabaseName> | |
</agent> |
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
[Fact] | |
public void GetHighestRatedMovies_RepositoryContainsMoviesWithRatings_ReturnsMoviesOrderedByDescendingRating() | |
{ | |
// Arrange | |
var fixture = new Fixture(); | |
var movieCollection = fixture.CreateMany<Movie>(20).ToList(); | |
var fakeMovieRepository = A.Fake<IMovieRepository>(); | |
A.CallTo(() => fakeMovieRepository.GetAll()).Returns(movieCollection); | |
IMovieService movieService = new MovieService(fakeMovieRepository, null, null); | |
MovieServiceRequest request = new MovieServiceRequest { NumberOfMoviesToReturn = 5 }; |
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
cinst cURL | |
cinst fiddler4 | |
cinst git | |
cinst ilspy | |
cinst luke.portable | |
cinst mssqlserver2014express | |
cinst mssqlservermanagementstudio2014express | |
cinst nodejs.install | |
cinst notepadplusplus | |
cinst nuget.commandline |
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
<# | |
Loads the add-helixmodule.ps1 script to enable the creation of Feature and Foundation project in Sitecore Helix solutions. | |
You need to change this path to the location where the script is located on your local machine. | |
Once the script is loaded the Add-Feature and Add-Foundation methods are available in the Package Manager Console in Visual Studio. | |
#> | |
. "C:\dev\git\HabitatFork\scripts\add-helixmodule.ps1" |
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
{ | |
"__comment": "This configuration file is used by the add-helix-module.ps1 script which creates modules for Sitecore Helix solutions.", | |
"config": { | |
"__comment__moduleTemplatePath": "Update the moduleTemplatePath property to point to your module-template location.", | |
"moduleTemplatePath": "C:\\dev\\git\\HabitatFork\\module-template", | |
"__comment__featureNamespacePrefix": "Replace the value for featureNamespacePrefix with a suitable namespace prefix. The Feature.<ModuleName> will be appended by the script.", | |
"featureNamespacePrefix": "CompanyNamespace.ClientNamespace", | |
"__comment__foundationNamespacePrefix": "Replace the value for featureNamespacePrefix with a suitable namespace prefix. The Foundation.<ModuleName> will be appended by the script.", | |
"foundationNamespacePrefix": "CompanyNamespace", | |
"__comment__sourceFolderName": "The sourcefolder should contain the relative path (from the sln file folder) where the Feature, Foundation and Project folders are located. The Sitecore Habitat default is |