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
| arcs.transition() | |
| .duration(durations.entryAnimation) | |
| .attrTween("d", d => { | |
| let originalEnd = d.endAngle; | |
| return t => { | |
| let currentAngle = angleInterpolation(t); | |
| if (currentAngle < d.startAngle) { | |
| return ""; | |
| } |
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
| let generator = d3.pie() | |
| .sort(null); | |
| let chart = generator(data); | |
| let arcs = d3.select("#chart") | |
| .append("g") | |
| .attr("transform", "translate(100, 100)") | |
| .selectAll(".arc") | |
| .data(chart) |
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
| d3.select("#chart") | |
| .transition() | |
| .duration(durations.entryAnimation) | |
| .tween("arcRadii", () => { | |
| return t => arc | |
| .innerRadius(innerRadiusInterpolation(t)) | |
| .outerRadius(outerRadiusInterpolation(t)); | |
| }); |
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
| FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS installer-env | |
| COPY . /src/dotnet-function-app | |
| RUN cd /src/dotnet-function-app && \ | |
| mkdir -p /home/site/wwwroot && \ | |
| dotnet publish *.csproj --output /home/site/wwwroot | |
| FROM mcr.microsoft.com/azure-functions/dotnet:2.0-arm32v7 | |
| ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ | |
| AzureFunctionsJobHost__Logging__Console__IsEnabled=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
| var account = CloudStorageAccount.Parse("DefaultEndpointsProtocol=http;BlobEndpoint=http://127.0.0.1:11002/blobs;AccountName=blobs;AccountKey=mm9NYwdA42vTEF9Q6/4A4slU+8pd/VFpBnL5jWvZZkR7W7Bcn3qHsn/mAA3t/ZGZn/U3+Z1gJEWzPgjNMTF8/Q==;"); | |
| var client = account.CreateCloudBlobClient(); |
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
| @useChildObjects | |
| Scenario: Demonstrating how this approach looks | |
| Given I have a User called 'Jon' | |
| And I have a User called 'Matthew' | |
| And I have the following expense claims | |
| | Date | Amount | User | Description | | |
| | 26/02/2020 | £25 | {Jon} | Travel to Endjin team away day | | |
| | 26/02/2020 | £40 | {Matthew} | Travel to Endjin team away day | |
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
| [BeforeScenario("@useChildObjects", Order = 100)] | |
| public static void SetupValueRetrievers(ScenarioContext scenarioContext) | |
| { | |
| var instance = new ChildObjectValueRetriever(scenarioContext); | |
| scenarioContext.Set(instance, ChildObjectValueRetrieverKey); | |
| Service.Instance.ValueRetrievers.Register(instance); | |
| } | |
| [AfterScenario("@useChildObjects", Order = 100)] | |
| public static void TearDownValueRetrievers(ScenarioContext scenarioContext) |
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
| <specFlow> | |
| <stepAssemblies> | |
| <stepAssembly assembly="Corvus" /> | |
| </stepAssemblies> | |
| </specFlow> |
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
| { | |
| "stepAssemblies": [ | |
| { "assembly": "Corvus.SpecFlow.Extensions" } | |
| ] | |
| } |
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
| Scenario: A Get request including a name in the querystring is successful | |
| Given I start a functions instance for the local project 'DemoFunction' on port 7075 with runtime 'netcoreapp3.0' | |
| When I send a GET request to 'http://localhost:7075/?name=Jon' | |
| Then I receive a 200 response code | |
| And the response body contains the text 'Hello, Jon' |
OlderNewer