public given_sender_and_receiver() { this.connectionFactory = System.Data.Entity.Database.DefaultConnectionFactory; this.sender = new MessageSender(this.connectionFactory, "TestSqlMessaging", "Test.Commands"); this.receiver = new TestableMessageReceiver(this.connectionFactory); MessagingDbInitializer.CreateDatabaseObjects(this.connectionFactory.CreateConnection("TestSqlMessaging").ConnectionString, "Test", true); }
public given_sender_and_receiver() { // TODO: DEPRECATED - The default connection factory should be set in the config file or using the DbConfiguration class this.connectionFactory = System.Data.Entity.Database.DefaultConnectionFactory; this.sender = new MessageSender(this.connectionFactory, "TestSqlMessaging", "Test.Commands"); this.receiver = new TestableMessageReceiver(this.connectionFactory); MessagingDbInitializer.CreateDatabaseObjects(this.connectionFactory.CreateConnection("TestSqlMessaging").ConnectionString, "Test", true); }
public TestableMessageReceiver(System.Data.Entity.Infrastructure.IDbConnectionFactory connectionFactory) : base(connectionFactory, "TestSqlMessaging", "Test.Commands") { }