//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ public EasyPay(IServiceCollection services, string connectionString) { Image = "location"; EasyPayDbContext.Configure(connectionString); RequiredConfigurationFields = new FluentList <ProviderConfiguration>() .Add(new ProviderConfiguration(nameof(Image))); }
internal static void FluentListHandler() { var fluentlist = new FluentList <int> { 1, 2, 3, 4, 5 } .Add(1) .Insert(0, 0) .RemoveAt(1) .Reverse() .ForEach(Console.WriteLine) .Clear(); }
//■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ public Braintree(IServiceCollection services, /*IConfiguration configuration, IMediator med,*/ string connectionString) { Image = "location"; BraintreeDbContext.Configure(connectionString); RequiredConfigurationFields = new FluentList <ProviderConfiguration>() .Add(new ProviderConfiguration(nameof(ClientId))) .Add(new ProviderConfiguration(nameof(SecretId))) .Add(new ProviderConfiguration(nameof(Image))); services.AddTransient <TestController>(); }
public void GenericTools_Collections_FluentList() { var list = new FluentList <SampleModel>() .Add(new SampleModel { Title = "Test" }) .Add(new SampleModel { Title = "Test2" }) .Add(new SampleModel { Title = "Test3" }) .RemoveAt(0).Reverse().Update(i => i.Type = ModelType.Test); MakeSure.That(list.Count).Is(2); MakeSure.That(list.First().Type).Is(ModelType.Test); }
//───────────────────────────────────────────────────────────────────────────────────────── public Provider(string name, FluentList <ProviderConfiguration> configuration) { Name = name; IsActive = false; Configuration = configuration; }