Пример #1
0
        public void Login_NytLogin_PondEq()
        {
            var logininfo = new NordCar.WebAPI.Models.EC.LoginInfo()
            {
                UserName = "******", Password = "******", LoginType = Models.EC.LoginType.Company
            };
            var basic = new BasicStructure1()
            {
            };
            //Act
            var response = controller.Login(logininfo);

            //Assert
            Assert.IsNotNull(response);
        }
Пример #2
0
        public void Login_NytLogin_Type200()
        {
            var basic = new BasicStructure1()
            {
                BookTypes = BookTypes.ECBOOK.ToString(), Language = "DK", CustomerId = "910361"
            };
            var logininfo = new NordCar.WebAPI.Models.EC.LoginInfo()
            {
                UserName = "******", Password = "", LoginType = Models.EC.LoginType.Agreement
            };

            //Act
            var response = controller.Login(logininfo);

            //Assert
            Assert.IsNotNull(response);
        }
Пример #3
0
        public void Login_Claus()
        {
            var basic = new BasicStructure1()
            {
            };
            var logininfo = new NordCar.WebAPI.Models.EC.LoginInfo()
            {
                UserName = "******", Password = "******", LoginType = Models.EC.LoginType.Personal
            };

            //Act
            //var response = controller.Login("*****@*****.**", "fisk6fisk7");
            logininfo.Basic = basic;
            var response = controller.Login(logininfo);

            //Assert
            Assert.IsNotNull(response);
        }