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