/// <summary>
 /// Initializes a new instance of the <see cref="GetSourceEnvironmentBlock" /> class.
 /// </summary>
 /// <param name="findEntitiesInListPipeline">The find entities in list pipeline.</param>
 /// <param name="migrateEntityMetadataPipeline">The migrate entity metadata pipeline.</param>
 /// <param name="getListCountCommand">The get list count command.</param>
 public MigrateListBlock(
     IFindEntitiesInListPipeline findEntitiesInListPipeline,
     IMigrateEntityMetadataPipeline migrateEntityMetadataPipeline,
     GetListCountCommand getListCountCommand)
 {
     this._findEntitiesInListPipeline    = findEntitiesInListPipeline;
     this._migrateEntityMetadataPipeline = migrateEntityMetadataPipeline;
     this._getListCountCommand           = getListCountCommand;
 }
Exemple #2
0
        public async void GetsListCount()
        {
            _engine       = new AutomationEngineInstance(null);
            _getListCount = new GetListCountCommand();

            List <string> inputList = new List <string>();

            inputList.Add("1");
            inputList.Add("2");
            inputList.Add("3");

            VariableMethods.CreateTestVariable(inputList, _engine, "inputList", typeof(List <>));
            VariableMethods.CreateTestVariable(null, _engine, "output", typeof(int));

            _getListCount.v_ListName = "{inputList}";
            _getListCount.v_OutputUserVariableName = "{output}";

            _getListCount.RunCommand(_engine);

            Assert.Equal(inputList.Count, (Int32)await "{output}".EvaluateCode(_engine));
        }
Exemple #3
0
 public CreateCouponsBlock(
     GetManagedListCommand getManagedListCommand,
     CreateManagedListCommand createManagedListCommand,
     GetListCountCommand getListCountCommand,
     FindEntityCommand findEntityCommand,
     DuplicatePromotionCommand duplicatePromotionCommand,
     AddPrivateCouponCommand addPrivateCouponCommand,
     NewCouponAllocationCommand newCouponAllocationCommand,
     AddListEntitiesPipeline addListEntitiesPipeline,
     PersistEntityCommand persistEntityCommand,
     GetEntitiesInListCommand getEntitiesInListCommand
     )
 {
     _getManagedListCommand      = getManagedListCommand;
     _createManagedListCommand   = createManagedListCommand;
     _getListCountCommand        = getListCountCommand;
     _findEntityCommand          = findEntityCommand;
     _duplicatePromotionCommand  = duplicatePromotionCommand;
     _addPrivateCouponCommand    = addPrivateCouponCommand;
     _newCouponAllocationCommand = newCouponAllocationCommand;
     _addListEntitiesPipeline    = addListEntitiesPipeline;
     _persistEntityCommand       = persistEntityCommand;
     _getEntitiesInListCommand   = getEntitiesInListCommand;
 }
Exemple #4
0
 public Dashboard(GetListCountCommand getListCountCommand)
 {
     _getCountCommand = getListCountCommand;
 }