Beispiel #1
0
        private static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ServicesConfig.Initialize(); // create instance

            IArithmeticOperationsRepo operationsRepo = ServicesConfig.OperationsRepo;

            //inject dependency
            Application.Run(new Calculator(operationsRepo));
        }
Beispiel #2
0
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ServicesConfig.Initialize();
            IUserRepository userRepo = ServicesConfig.userRepository;
            IAuthRepository authRepo = ServicesConfig.authRepository;


            Application.Run(new Address(userRepo, authRepo));
        }
Beispiel #3
0
 public InitializeRepoFixture()
 {
     ServicesConfig.Initialize();
     ArithmeticOperations = ServicesConfig.OperationsRepo;  // passes in an instance of the ArithmeticOperationRepo
 }