This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def getVersionName = { getVersionProps()['appVersionName'] } | |
| def getVersionProps() { | |
| def versionPropsFile = file('gradle.properties') | |
| if (!versionPropsFile.exists()) { | |
| versionPropsFile.createNewFile() | |
| } | |
| def versionProps = new Properties() | |
| versionProps.load(new FileInputStream(versionPropsFile)) | |
| return versionProps | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @NApiVersion 2.x | |
| * @NScriptType UserEventScript | |
| * @NModuleScope SameAccount | |
| */ | |
| var PAYMENT_INFO = { | |
| "docNum" : null, | |
| "clientName" : null, | |
| "paymentMethod" : null, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | it('should correctly handle server down', () => { | |
| // Arrange | |
| server.replyWithError({ code: 'ECONNREFUSED' }); | |
| openDialog.mockImplementation((dialogName, loc) => { | |
| jestExpect(dialogName).toBe(dialog.createBasketError); | |
| jestExpect(loc).toBe(location) | |
| return {type: MOCK_OPEN_DIALOG} | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public void SortUsersByName_WithEmptyUserList_ReturnsEmptyUserList() { | |
| // Arrange | |
| var emptyUserList = new List<User>(); | |
| // Act | |
| var sortedUserList = userService.SortUserByName(emptyUserList); | |
| // Assert | |
| Assert.AreEqual(emptyUserList, sortedUserList); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 'use strict'; | |
| var gulp = require('gulp'); | |
| require('./gulp/client-config'); | |
| gulp.start('config'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var gulp = require('gulp'); | |
| var gulpNgConfig = require('gulp-ng-config'); | |
| gulp.task('config', function() { | |
| gulp.src('config.json') | |
| .pipe(gulpNgConfig('myApp')) | |
| .pipe(gulp.dest('app/scripts')); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (function() { | |
| 'use strict'; | |
| angular | |
| .module('myApp') | |
| .controller('MainController', MainController); | |
| function MainController($http) { | |
| $http.get('/config') | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var env = process.env.NODE_ENV || 'develop'; | |
| app.get('/config', function (req, res) { | |
| if(env === 'develop') { | |
| res.send(developConfig); | |
| }else if(env === 'staging') { | |
| res.send(stagingConfig); | |
| }else if(env === 'prod') { | |
| res.send(prodConfig); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | angular.module('yourApp') | |
| .constant('apiEndpoint', 'https://api.test.com/messages') | |
| .constant('apiEndpointKey', '123456789987654321'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| public class Hello2 | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine("Hello, World!"); | |
| } | |
| } |