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
public MyStack(Construct scope, string id) : base(scope, id) | |
{ | |
var azurermProviderConfig = new AzurermProviderConfig() { Features = new AzurermProviderFeatures() }; | |
var azurermProvider = new AzurermProvider(this, "AzureRm", azurermProviderConfig); | |
var resourceGroup = BuildResourceGroup(); | |
var storageAccountBuilder = new StorageAccountBuilder(this) | |
.InResourceGroup(resourceGroup) |
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
public class Function | |
{ | |
private readonly TerraformStack _stack; | |
private ServicePlan _appServicePlan; | |
private ResourceGroup _rg; | |
private StorageAccount _functionStorageAccount; | |
private string _functionName; | |
public Function(TerraformStack stack) | |
{ |
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
public class MyStack : TerraformStack | |
{ | |
public MyStack(Construct scope, string id) : base(scope, id) | |
{ | |
var azurermProviderConfig = new AzurermProviderConfig() { Features = new AzurermProviderFeatures() }; | |
var azurermProvider = new AzurermProvider(this, "AzureRm", azurermProviderConfig); | |
var rg = BuildResourceGroup(); |
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
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
App app = new App(); | |
MyStack stack = new MyStack(app, "datafactory"); | |
new LocalBackend(stack); | |
app.Synth(); | |
} | |
} |
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
[Test] | |
public async Task Should_have_a_successfull_pipeline_run() | |
{ | |
var tenantId = "xx"; | |
var context = | |
new AuthenticationContext($"https://login.microsoftonline.com/{tenantId}/"); | |
var clientId = "x"; | |
var clientSecret = "x"; | |
var cc = new ClientCredential(clientId, | |
clientSecret); |
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
package main | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
type item_discount struct { | |
name rune |
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
package main | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
func GetPrices() map[rune]int { | |
var prices = make(map[rune]int) |
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
package main | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
func TestAlwaysTrue(t *testing.T) { |
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
package main | |
import ( | |
"strings" | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
//https://github.com/hibri/code-katas/blob/main/katas/tennis-game.md | |
func TestAlwaysTrue(t *testing.T) { |
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
package main | |
import ( | |
"testing" | |
"github.com/pkg/errors" | |
"github.com/stretchr/testify/assert" | |
) | |
func TestAlwaysTrue(t *testing.T) { |
NewerOlder