<commit_before>namespace MassTransit.ServiceBus.Tests.HealthMonitoring
{
    using System;
    using System.Threading;
    using MassTransit.ServiceBus.HealthMonitoring;
    using MassTransit.ServiceBus.HealthMonitoring.Messages;
    using MassTransit.ServiceBus.Internal;
    using MassTransit.ServiceBus.Subscriptions;
    using NUnit.Framework;
    using Transports;

	public class MonitorInfoSpecs :
        Specification
    {
        [Test]
        public void MonitorInfoTimer()
        {
        	ManualResetEvent expired = new ManualResetEvent(false);

            Uri u = new Uri("msmq://localhost/ddd");

			MonitorInfo m = new MonitorInfo(u, 1, delegate { expired.Set(); });

        	Assert.IsTrue(expired.WaitOne(TimeSpan.FromSeconds(2), true));
        }

        [Test]
        [Ignore("Needs new castle object builder")]
        public void bob()
        {
						EndpointResolver.AddTransport(typeof(LoopbackEndpoint));

        	EndpointResolver _endpointResolver = new EndpointResolver();
        	IEndpoint _mockServiceBusEndPoint = _endpointResolver.Resolve(new Uri("loopback://localhost/test"));

			ServiceBus bus = new ServiceBus(_mockServiceBusEndPoint, DynamicMock<IObjectBuilder>());
            bus.AddComponent<HeartbeatMonitor>();
            bus.Dispatch(new Heartbeat(3, new Uri("msmq://localhost/ddd")));
        }
    }
}<commit_msg>formatting<commit_after>namespace MassTransit.ServiceBus.Tests.HealthMonitoring
{
    using System;
    using System.Threading;
    using MassTransit.ServiceBus.HealthMonitoring;
    using MassTransit.ServiceBus.HealthMonitoring.Messages;
    using MassTransit.ServiceBus.Internal;
    using NUnit.Framework;
    using Transports;

	public class MonitorInfoSpecs :
        Specification
    {
        [Test]
        public void MonitorInfoTimer()
        {
        	ManualResetEvent expired = new ManualResetEvent(false);

            Uri u = new Uri("msmq://localhost/ddd");

			MonitorInfo m = new MonitorInfo(u, 1, delegate { expired.Set(); });

        	Assert.IsTrue(expired.WaitOne(TimeSpan.FromSeconds(2), true));
        }

        [Test]
        [Ignore("Needs new castle object builder")]
        public void bob()
        {
            EndpointResolver.AddTransport(typeof (LoopbackEndpoint));

            EndpointResolver _endpointResolver = new EndpointResolver();
            IEndpoint _mockServiceBusEndPoint = _endpointResolver.Resolve(new Uri("loopback://localhost/test"));

            ServiceBus bus = new ServiceBus(_mockServiceBusEndPoint, DynamicMock<IObjectBuilder>());
            bus.AddComponent<HeartbeatMonitor>();
            bus.Dispatch(new Heartbeat(3, new Uri("msmq://localhost/ddd")));
        }
    }
}
{'fraction_non_alphanumeric': 0.10092421441774492, 'fraction_numerical': 0.0022181146025878, 'mean_word_length': 3.008888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5011898', 'n_tokens_mistral': 762, 'n_tokens_neox': 719, 'n_words': 141}