Esempio n. 1
0
        public void Possible_To_Login_With_Valid_Credentials()
        {
            var response = webShopClient
                           .Login("user", "password")
                           .Result;

            Assert.IsNotNull(response, "Login was not successful");
        }
Esempio n. 2
0
        public void Possible_To_Get_Orders_If_Signed_In()
        {
            var response = webShopClient
                           .Login("user", "password")
                           .Result
                           .GetOrders()
                           .Result;

            Assert.IsNotNull(response);
        }
Esempio n. 3
0
        public void Possible_To_Check_Health()
        {
            //never works ^^
            var response = webShopClient
                           .Login("user", "password")
                           .Result
                           .GetHealth()
                           .Result;

            Assert.IsInstanceOfType(response, typeof(GetHealthResponse));
        }