private void RegisterTestUserSecrets(TestContext context) { context.WebConfig.TestConfig = Options.Create(_configRoot.GetSection("TestUserSecrets").Get <ServiceWebTestConfig>()).Value; context.WebConfig.TestConfig.CommonData = LoadXmlFile.SerialiseCommonData(); context.WebConfig.TestConfig.TestData = new DefaultDataManager().SerialiseTestData(); context.WebConfig.TestConfig.TargetBrowser.Should().NotBeNull(); context.WebConfig.TestConfig.TargetDevice.Should().NotBeNull(); context.WebConfig.TestConfig.TargetOS.Should().NotBeNull(); context.WebConfig.TestConfig.TestUsernameStem.Should().NotBeNull(); context.WebConfig.TestConfig.TestUserPassword.Should().NotBeNull(); }
private static void RegisterDefaultData(TestContext context) { context.Test = new Test { AddParticipant = new AddParticipant(), AssignJudge = new AssignJudge(), CommonData = LoadXmlFile.SerialiseCommonData(), HearingDetails = new HearingDetails(), HearingParticipants = new List <UserAccount>(), HearingResponse = new HearingDetailsResponse(), HearingSchedule = new HearingSchedule(), TestData = new DefaultDataManager().SerialiseTestData(), VideoAccessPoints = new VideoAccessPoints() }; context.Test.AddParticipant = context.Test.TestData.AddParticipant; }
private static void RegisterDefaultData(TestContext context) { context.Test = new Test { Case = new CaseResponse(), CommonData = LoadXmlFile.SerialiseCommonData(), Conference = new ConferenceDetailsResponse(), ConferenceParticipants = new List <ParticipantDetailsResponse>(), Conferences = new List <ConferenceDetailsResponse>(), Hearing = new HearingDetailsResponse(), HearingParticipants = new List <ParticipantResponse>(), NewConferenceId = Guid.Empty, NewHearingId = Guid.Empty, TestData = new DefaultDataManager().SerialiseTestData(), Users = new List <User>() }; }
public MainPage() { InitializeComponent(); IsPasswordSecond = Pass2MP.IsVisible; #region Loading LoginConfig.xml //var assembly = typeof(MainPage).GetTypeInfo().Assembly; //Stream stream = assembly.GetManifestResourceStream("BitcoinWallet.login.xml"); #endregion LoadXmlFile instLoadXmlFile = new LoadXmlFile(); streamFile = instLoadXmlFile.Streams; if (streamFile != null) { XDocument doc = XDocument.Load(streamFile); _fromXml = new DataSyntFromXml(doc); InitDataLocalization(); // init localization keys } }