Esempio n. 1
0
        private void Fetch_makes_post_request_with_correct_username_otp_and_no_uki(Remote.LoginType loginType)
        {
            var rest = new RestFlow()
                       .Post(GetFixture("empty-vault"))
                       .ExpectContent($"login={Username}", $"otp={Otp}")
                       .ExpectContent(s => Assert.DoesNotContain("uki=", s));

            Remote.Fetch(Username, loginType, Otp, rest);
        }
Esempio n. 2
0
        internal void RequestLoginType_returns_correct_login_type(string input, Remote.LoginType expected)
        {
            var rest = new RestFlow().Post($"{{'exists': '{input}'}}");

            Assert.Equal(expected, Remote.RequestLoginType(Username, rest));
        }