I hereby claim:
- I am kralizek on github.
- I am kralizek (https://keybase.io/kralizek) on keybase.
- I have a public key ASBU7qj7MepYNyG_AyK8etVC11-Db72Px-yxzanJaGvQmgo
To claim this, I am signing this object:
locals { | |
region = "eu-north-1" | |
} | |
resource "random_pet" "user_pool_name" { | |
length = 2 | |
prefix = "test" | |
} | |
resource "aws_cognito_user_pool" "cognito" { |
I hereby claim:
To claim this, I am signing this object:
using Amazon.SQS; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> { | |
["AWS:Profile"] = "LocalStack", | |
["AWS:Region"] = "us-east-1" | |
}); | |
var options = builder.Configuration.GetAWSOptions(); |
using System.CommandLine; | |
using Amazon; | |
using Amazon.S3; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
var profileOption = new Option<string>("--profile", getDefaultValue: () => "default", description: "The name of the profile to use to access AWS services."); | |
var regionOption = new Option<string>("--region", getDefaultValue: () => RegionEndpoint.EUWest1.SystemName, description: "The region where AWS services are located."); |
using System.Diagnostics; | |
using NUnit.Framework; | |
[SetUpFixture] | |
public class RootFixtureSetup | |
{ | |
[OneTimeSetUp] | |
public void OneTimeSetUp() => Debug.WriteLine("RootFixtureSetup:OneTimeSetUp"); | |
[OneTimeTearDown] |
Enumerable.Range(1, 100) | |
.Select(CheckModulo) | |
.Select(FizBuz) | |
.ToList() | |
.ForEach(Console.WriteLine); | |
static (bool isFizz, bool isBuzz, int n) CheckModulo(int n) | |
{ | |
return (n % 3 == 0, n % 5 == 0, n); | |
} |
Empty file to get a better name for the gist
public class SmartAutoDataAttribute : AutoDataAttribute | |
{ | |
public SmartAutoDataAttribute() : base(() => CreateFixture(null)) { } | |
public SmartAutoDataAttribute(Type type, string methodName) : base(CreateFixtureWithMethod(type, methodName)) { } | |
private static Func<IFixture> CreateFixtureWithMethod(Type type, string methodName) | |
{ | |
if (type == null) | |
{ |
public class QueueSubject<T> : ISubject<T> | |
{ | |
private readonly Subject<T> _subject = new Subject<T>(); | |
private readonly Queue<Action<IObserver<T>>> _actions = new Queue<Action<IObserver<T>>>(); | |
private bool _isCompleted = false; | |
private Exception _error; | |
public bool IsRunning => !_isCompleted && _error == null; | |
public bool HasObservers => _refCount > 0; |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp2.0</TargetFramework> | |
<IsPackable>false</IsPackable> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="AutoFixture" Version="4.6.0" /> |