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
$processedItems = New-Object System.Collections.ArrayList | |
function SetWorkFlowAndState { | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$true)] | |
[Sitecore.Data.Items.Item]$Item, | |
[Parameter(Mandatory=$true)] | |
[Sitecore.Data.ID]$WorkflowID, | |
[Parameter(Mandatory=$true)] |
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
[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 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
[Fact] | |
public void GetHighestRatedMovies_RepositoryContainsMoviesWithRatings_ReturnsMoviesOrderedByDescendingRating() | |
{ | |
// Arrange | |
IMovieRepository fakeMovieRepository = GetFakeMovieRepository(nrOfMoviesInRepository: 20); | |
IMovieService movieService = new MovieService(fakeMovieRepository, context: null, logger: null); | |
MovieServiceRequest request = GetMovieServiceRequest(nrOfMoviesToReturn: 5); | |
// Act | |
IList<Movie> movies = movieService.GetHighestRatedMovies(request); |
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
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 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
# Usage: | |
# Run the folling command in cmd window or PowerShell with elevated access: | |
# START http://boxstarter.org/package/nr/url?<link to raw gist> | |
# | |
# Prerequisites: | |
# - Chocolatey | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true |
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
<# | |
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 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
{ | |
"__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 |
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
<# | |
.SYNOPSIS | |
This script contains the Add-Feature and Add-Foundation methods which can be used to add a new module to a Sitecore Helix based Visual Studio solution. | |
The Visual Studio solution should contain a add-helix-module-configuration.json file containing variables which this script will use. | |
The Add-Feature and Add-Foundation methods can be run from the Pacakge Console Manager as long as this script is loaded in the relevant PowerShell profile. | |
Run $profile in the Pacakge Manager Console to verify the which profile is used. | |
#> |
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
<?xml version="1.0"?> | |
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | |
<metadata> | |
<id>_NamespacePrefix_._ModuleType_._Name_</id> | |
<title>_NamespacePrefix_._ModuleType_._Name_</title> | |
<version>$version$</version> | |
<authors>_Company_</authors> | |
<owners>_Company_</owners> | |
<requireLicenseAcceptance>false</requireLicenseAcceptance> | |
<description>_NamespacePrefix_._ModuleType_._Name_</description> |
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
# DESCRIPTION | |
# Boxstarter script with limited set of tooling relevant for .Net (web)development. | |
# This script is used in combination with a Windows 10 Development image obtained | |
# from https://developer.microsoft.com/en-us/windows/downloads/virtual-machines. | |
# | |
# USAGE | |
# Run the following command in cmd window or PowerShell with elevated access: | |
# START http://boxstarter.org/package/nr/url?<link to raw gist> | |
# | |
# PREREQUISITES |