Skip to content

Instantly share code, notes, and snippets.

param appName string
@allowed(['dev', 'prod'])
param environment string
param location string
// This is reused between the App Service and the Slot
var appServiceProperties = {
serverFarmId: appServicePlan.id
httpsOnly: true
siteConfig: {
[Theory]
[InlineData($InlineData$)]
public async Task Should$DoSomething$When$Condition$($type$ $name$)
{
$END$
}
[Theory]
[InlineData($InlineData$)]
public void Should$DoSomething$When$Condition$($type$ $name$)
{
$END$
}
[Fact]
public async Task $MethodUnderTest$Should$DoSomething$When$Condition$()
{
$END$
}
[Fact]
public void $MethodUnderTest$Should$DoSomething$When$Condition$()
{
$END$
}
@scottsauber
scottsauber / BlazorInput.razor
Created August 25, 2023 02:53
Data bind child to parent's data
// In our child component
<input value="@Value" oninput="@OnValueChanged" />
@code {
[Parameter]
public decimal Value { get; set; }
[Parameter]
public EventCallback<decimal> ValueChanged { get; set; }
# create new PR and open it
function pr() {
github_url=`git remote -v | awk '/fetch/{print $2}' | sed -Ee 's#(git@|git://)#https://#' -e 's@com:@com/@' -e 's%\.git$%%' | awk '/github/'`;
branch_name=`git symbolic-ref HEAD | cut -d"/" -f 3,4`;
main_branch=`git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4`
open_or_start='open'
uname=$(uname)
if [[ "$uname" == CYGWIN* || "$uname" == MINGW* ]] ; then
open_or_start='start'
fi
builder.Services.AddScoped<IRegisterAccountService, RegisterAccountService>();
builder.Services.AddScoped<IRazorViewToStringRenderer, RazorViewToStringRenderer>();
result.Should().Be(2);