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); }
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)); }