Ejemplo n.º 1
0
        public async Task TestCompletionComponentCard()
        {
            var component = new ComponentCompletion()
            {
                Completed    = false
                , MoveDelay  = 1
                , ReturnPrev = false
                , ScrollLock = true
            };

            await TestComponentCard(component);

            //For coverage
            component.SetDefaults();
        }
Ejemplo n.º 2
0
        public async Task TestCompleteAssignmentAction()
        {
            var doneAction = new ActionCompleteAssignment();
            var component  = new ComponentCompletion()
            {
                Done       = new DoneOnSelect(),
                DoneAction = doneAction
            };

            await TestComponentCard(component);

            //For coverage
            doneAction.ToString();
            doneAction.ToJson();
            doneAction.SetDefaults();
            component.SetDefaults();
        }
Ejemplo n.º 3
0
        public async Task TestMoveToAction()
        {
            var doneAction = new ActionMoveTo()
            {
                CardId       = CARD_ID
                , SequenceId = AssignmentUtils.ROOT_SEQUENCE_ID
            };

            var component = new ComponentCompletion()
            {
                Done       = new DoneOnSelect(),
                DoneAction = doneAction
            };

            await TestComponentCard(component);

            //For coverage
            doneAction.ToString();
            doneAction.ToJson();
            doneAction.SetDefaults();
            component.SetDefaults();
        }