public static void TestPrep() { application = Application.Launch(applicationPath); window = application.GetWindow("Make_Your_Fortune", InitializeOption.NoCache); context = repo.Context(); text_box = window.Get <TextBox>("FortuneMakerTextBox"); submit_button = window.Get <Button>("SubmitButton"); career_button = window.Get <Button>("CareerButton"); health_button = window.Get <Button>("HealthButton"); relationship_button = window.Get <Button>("RelationshipButton"); life_button = window.Get <Button>("LifeButton"); }
public FortuneRepository() { _dbContext = new FortuneContext(); //generates new instance of FortuneContext _dbContext.Fortunes.Load(); //Loads the DbSet Fortunes, which connects the database to dbLogic }
public MySqlHealthContributor(FortuneContext dbContext, ILogger <MySqlHealthContributor> logger) { _context = dbContext; _logger = logger; }