public void FactoryGetBufferedActivityGeneric()
        {
            // Don't handle dispose as it'll try and connect to a SQL server that may not be there.
            var activity = ActivityFactory.NewBufferedActivity <TestActivity>(_dummyConnectionString);

            // We have default stuff
            ActivityCheckCommon(activity);
        }
        public void FactoryGetBufferedActivityWithId()
        {
            var activityId = Guid.NewGuid().ToString();
            var activity   = (TestActivity)ActivityFactory.NewBufferedActivity(typeof(TestActivity), _dummyConnectionString, activityId);

            ActivityCheckCommon(activity);

            Assert.AreEqual(activityId, activity.ActivityId);
        }
        public void FactoryGetBufferedActivityGenericWithId()
        {
            var activityId = Guid.NewGuid().ToString();

            // Don't handle dispose as it'll try and connect to a SQL server that may not be there.
            var activity = ActivityFactory.NewBufferedActivity <TestActivity>(_dummyConnectionString, activityId);

            // We have the right object
            Assert.AreEqual(activityId, activity.ActivityId, "ActivityId is not as supplied.");

            // We have default stuff
            ActivityCheckCommon(activity);
        }
        public void FactoryGetBufferedActivity()
        {
            var activity = (TestActivity)ActivityFactory.NewBufferedActivity(typeof(TestActivity), _dummyConnectionString);

            ActivityCheckCommon(activity);
        }