public void Setup() { transport = new MsmqTransport { //Todo: Fix //InputQueue = "unittests", //ErrorQueue ="error" }; var inspector = new MsmqTransportInspector(transport); transportInfo = inspector.GetTransportInformation(); }
public void SetUp() { bus = MockRepository.GenerateStub<IBus>(); var transportInspector = MockRepository.GenerateStub<ITransportInspector>(); transportInfo = new TransportInfo { Adress = "test@localhost" }; transportInspector.Stub(x => x.GetTransportInformation()).Return(transportInfo); var hostInspector = MockRepository.GenerateStub<IHostInspector>(); hostInformation = new HostInformation(); hostInspector.Stub(x => x.GetHostInformation()).Return(hostInformation); var endpointMonotor = new EndpointMonitor(bus, transportInspector, hostInspector); endpointMonotor.Start(); }