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 Main() { | |
| this.execute = function (){ | |
| //this is one comment | |
| //your code | |
| console.log("Hello world"); | |
| } | |
| } | |
| new Main().execute(); |
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
| class Main { | |
| execute(){ | |
| //this is one comment | |
| //your code | |
| console.log("Hello world"); | |
| } | |
| } | |
| new Main().execute(); |
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
| 1. leer Domain-Driven Design Distilled. | |
| 2. curso de entity framekork(migraciones) | |
| 3. curso de rabbit mq | |
| 4. Aprende más sobre la teoria de CQRS | |
| 5. crea un juguete romplible de CQRS |
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
| @Test | |
| public void user_only_can_delete_own_commentary() throws Exception { | |
| User user = new UserStub("user"); | |
| Commentary userCommentary = new Commentary("Hola mundo", anyUser); | |
| Commentary anyCommentary = new Commentary("Hola mundo", new User("anyUser", new Authentication())); | |
| Assert.assertTrue(user.deleteCommentary(userCommentary)); | |
| Assert.assertFalse(user.deleteCommentary(anyCommentary)); | |
| } |
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 class User { | |
| private String name; | |
| private Authentication authentication; | |
| public User(String name, Authentication authentication) { | |
| this.name = name; | |
| this.authentication = authentication; | |
| } | |
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
| import React, {PropTypes} from 'react'; | |
| import {connect} from 'react-redux'; | |
| import * as courseActions from '../../actions/courseActions'; | |
| import {bindActionCreators} from 'redux'; | |
| import CourseForm from './CourseForm'; | |
| import toastr from 'toastr'; | |
| export class ManagerCoursePage extends React.Component { | |
| constructor(props, context) { |
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('var i Omnipresence', function () { | |
| var introductions = [], | |
| names = ['Karl', 'Friedrich', 'Gauss']; | |
| for (var i = 0; i < 3; i++) { | |
| introductions[i] = (soAndSo) => | |
| `Hello, ${soAndSo}, my name is ${names[i]}` | |
| } | |
| introductions[1]('Raganwald').should.equal("Hello, Raganwald, my name is undefined"); |
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
| import org.junit.Assert; | |
| import org.junit.Test; | |
| public class HelloWorldShould { | |
| @Test | |
| public void testGreen() { | |
| Assert.assertTrue(true); | |
| } |