Esempio n. 1
0
        public when_publish_an_event_to_the_sql_server_publisher()
        {
            given_the_puppy_monitoring_database_is_empty();

            publisher = new SqlServerPublisher();
            @event = new SampleCustomEvent(new DateTime(2013, 01, 01, 12, 13, 14),
                                           new Categorisation("CATEGORY", "SUB_CATEGORY"),
                                           new Timings(100));
        }
Esempio n. 2
0
        public when_publish_an_event_to_the_sql_server_publisher_using_an_existing_connection()
        {
            given_the_puppy_monitoring_database_is_empty();

            connection = new SqlConnection(ConfigurationManager.ConnectionStrings["puppy.sqlserver"].ConnectionString);
            connection.Open();

            publisher = new SqlServerWithExistingConnectionPublisher(connection);
            @event    = new SampleCustomEvent(new DateTime(2013, 01, 01, 12, 13, 14),
                                              new Categorisation("CATEGORY", "SUB_CATEGORY"),
                                              new Timings(100));
        }