コード例 #1
0
            public override void AssertThat(AuthControllerTestRepository authControllerTestRepository, HttpResponseMessage acualRessult)
            {
                _testOutputHelper.WriteLine("02 AssertThat");
                MultiFatorUtils.Assert01_02_03_15(authControllerTestRepository, acualRessult);
                var result = JObject.Parse(acualRessult.Content.ReadAsStringAsync().Result);

                Assert.Equal("authId_required", result["errors"]["AuthId"].First().ToString());
            }
コード例 #2
0
        public void TestCase03()
        {
            _setupRepository.SetUpInsertDataForCase03();

            string request      = "{accountName:'aaa', authId:'aaaabbbbbbbbcccccccc'}";
            var    acualRessult = _client.PostMultiFactorAuthenticationCase03(request);

            MultiFatorUtils.Assert01_02_03_15(_repository, acualRessult);
            var result = JObject.Parse(acualRessult.Content.ReadAsStringAsync().Result);

            Assert.StartsWith("Error converting value \"aaaabbbbbbbbcccccccc\" to type 'System.Nullable`1[System.Guid]'", result["errors"]["authId"].First().ToString());
        }
コード例 #3
0
 public override void AssertThat(AuthControllerTestRepository authControllerTestRepository, HttpResponseMessage acualRessult)
 {
     _testOutputHelper.WriteLine("13 AssertThat");
     MultiFatorUtils.Assert13(authControllerTestRepository, acualRessult);
 }
コード例 #4
0
 public override void AssertThat(AuthControllerTestRepository authControllerTestRepository, HttpResponseMessage acualRessult)
 {
     _testOutputHelper.WriteLine("11 AssertThat");
     MultiFatorUtils.Assert09_10_11(authControllerTestRepository, acualRessult, _multiFactorAuthenticationRequest);
 }
コード例 #5
0
 public override void AssertThat(AuthControllerTestRepository authControllerTestRepository, HttpResponseMessage acualRessult)
 {
     _testOutputHelper.WriteLine("08 AssertThat");
     MultiFatorUtils.Assert04_05_07_08_14_16_17_18_19_20(authControllerTestRepository, acualRessult, _multiFactorAuthenticationRequest);
 }