example: http://halform.herokuapp.com/
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using tests; |
This file contains 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 Factory = require('AutoFixture'); | |
require('./fixtures')(Factory); | |
var TestHelper = require("./testHelper"); | |
testHelper = new TestHelper(); | |
describe("Tests",function(){ | |
before(function(done){ | |
//the models are saved in mongodb, then dynamically attached to testHelper | |
testHelper.create([ | |
{name:'admin', model:'User', val:Factory.create 'User',{approved:true, email:'adminEmail', roles:['admin']}}, |
This file contains 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 UCDObjectToInformationRequirementConverter { | |
public MyObject ConvertFrom(KeyValueObject kvObject){ | |
final MyObject result = new MyObject(); | |
Set<KeyValueNode<?,?>> nodes = kvObject.getNodes(); | |
for(UCDNode node : nodes){ | |
getFieldValue(node,"_id", new FieldValueSetter() {@Override public void setField(String value) {result.setId(value);}}); | |
} | |
return result; | |
} |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using PropertyRegistration.Common.Infrastructure.Extensions; | |
namespace PropertyRegistration.Common.Models.Enumerations | |
{ | |
[Serializable] | |
public abstract class Enumeration : IEquatable<Enumeration> |
This file contains 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 FluentMigrator; | |
using ViewSourceMigrations.CustomMigrations; | |
using ViewSourceMigrations.Extensions; | |
namespace ViewSourceMigrations.Migrations { | |
[ Migration( 20121206112020 ) ] | |
public class Migration20121206112020CreateVendorTable : HiLoMigration { | |
public override void Up( ) { | |
Create.Table(ProgramConstants.Tables.Vendor) |
This file contains 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 enum CustomerMessagePreferences | |
{ | |
SMS, Email | |
} |
This file contains 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 SMSMessenger : ISendMessages{ | |
public string Carrier {get;set;} | |
void Send(Message msg){ | |
//send the msg | |
} | |
} |
This file contains 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 EmailMessenger: ISendMessages{ | |
void Send(Message msg){ | |
//do all the work to send an email | |
} | |
} |
This file contains 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
define (require) -> | |
{ | |
resize: require 'ResizeCommand' | |
rotate: require 'RotateCommand' | |
} |
NewerOlder