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)); }
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)); }
public InitializeRepoFixture() { ServicesConfig.Initialize(); ArithmeticOperations = ServicesConfig.OperationsRepo; // passes in an instance of the ArithmeticOperationRepo }