public bool DoStuff()
        {
            var user = new User();

            var product = new Product();

            var database = new Database("myDatabase");

            if (!database.IsDatabaseOnline())
            {
                return false;
            }

            if (user.IsAccountOverdrawn())
            {
                return false;
            }

            var transactionId = database.ChargeUserForProduct(user.Id, product.Code);

            database.SaveTransaction(transactionId);

            return true;
        }
 public MainWithInjection()
 {
     User = new User();
     Product = new Product();
     Database = new Database("myDatabase");
 }