コード例 #1
0
 public override void SetUp(MultiFactorAuthenticationControllerTestSetupRepository setupRepository)
 {
     _testOutputHelper.WriteLine("13 Setup 1");
     base.SetUp(setupRepository);
     setupRepository.SetUpInsertDataForCase13();
     _testOutputHelper.WriteLine("13 Setup 2");
 }
コード例 #2
0
 public override void SetUp(MultiFactorAuthenticationControllerTestSetupRepository setupRepository)
 {
     _testOutputHelper.WriteLine("02 Setup");
     setupRepository.SetUpInsertDataForCase02();
 }
コード例 #3
0
 public MultiFactorAuthenticationControllerTests(WebApplicationFactory <Startup> factory, ITestOutputHelper testOutputHelper) : base(factory, testOutputHelper)
 {
     _setupRepository = new MultiFactorAuthenticationControllerTestSetupRepository(MainDbContext, RadiusDbContext);
     _repository      = new AuthControllerTestRepository(MainDbContext, RadiusDbContext);
     _client          = new AuthHttpClientWrapper(Client);
 }
コード例 #4
0
            public void Test(AuthControllerTestRepository authControllerTestRepository, MultiFactorAuthenticationControllerTestSetupRepository setupRepository, AuthHttpClientWrapper httpClientWrapper)
            {
                SetUp(setupRepository);
                var response = httpClientWrapper.PostMultiFactorAuthentication(_multiFactorAuthenticationRequest);

                AssertThat(authControllerTestRepository, response);
            }
コード例 #5
0
 public void Test(ITestOutputHelper testOutputHelper, AuthControllerTestRepository authControllerTestRepository,
                  MultiFactorAuthenticationControllerTestSetupRepository setupRepository, AuthHttpClientWrapper httpClientWrapper)
 {
     _testOutputHelper = testOutputHelper;
     Test(authControllerTestRepository, setupRepository, httpClientWrapper);
 }
コード例 #6
0
 public virtual void SetUp(MultiFactorAuthenticationControllerTestSetupRepository setupRepository)
 {
     setupRepository.SetUpInsertBaseDataForMainDb();
     setupRepository.SetUpInsertBaseDataForRadiusDb();
 }