public void CreatedOrders_1()
        {
            IUserProfile UserProfileObj = new UserProfile();

            UserProfileObj.SetEmail("*****@*****.**");
            List <string> token = new SecurityDataLayer(UserProfileObj).GetTokenList();

            if (token.Count == 0)
            {
                // token count = 0 means that the account is not logged in or all sessions destroyed
                // generate the token
                UserProfileObj.SetPassword("Root@123");
                LoginUserReponse response = new UserActions().LoginUserAction(UserProfileObj);
                token = new SecurityDataLayer(UserProfileObj).GetTokenList();
            }
            UserProfileObj.SetToken(token[token.Count - 1].ToString());
            IOrder OrderObj = new Order();

            OrderObj.SetOrderType("Individual");
            OrderObj.SetStatusName("Order_Created");
            OrderTypeTemplate            IndividualOrderObj = new IndividualOrderTemplate(UserProfileObj, OrderObj);
            List <IOrderBuilderResponse> Output             = IndividualOrderObj.FetchOrderCreatedID();

            Assert.AreEqual(Output.Count == 0, true);
        }
        public void CreatedOrders_4()
        {
            IUserProfile UserProfileObj = new UserProfile();
            IOrder       OrderObj       = new Order();

            OrderObj.SetOrderType("Individual");
            OrderObj.SetStatusName("Order_Created");
            UserProfileObj.SetToken("ABCD");
            OrderTypeTemplate            IndividualOrderObj = new IndividualOrderTemplate(UserProfileObj, OrderObj);
            List <IOrderBuilderResponse> Output             = IndividualOrderObj.FetchOrderCreatedID();

            Assert.AreEqual(Output.Count == 0, true);
        }
        public void CreatedOrders_3()
        {
            int          ExpectedOutput = -2;
            int          GotOutput      = 0;
            IUserProfile UserProfileObj = new UserProfile();
            IOrder       OrderObj       = new Order();

            OrderObj.SetOrderType("Individual");
            OrderObj.SetStatusName("Order_Created");
            UserProfileObj.SetToken(null);
            try
            {
                OrderTypeTemplate            IndividualOrderObj = new IndividualOrderTemplate(UserProfileObj, OrderObj);
                List <IOrderBuilderResponse> Output             = IndividualOrderObj.FetchOrderCreatedID();
            }
            catch (Exception)
            {
                GotOutput = -2;
            }
            Assert.AreEqual(GotOutput, ExpectedOutput);
        }