예제 #1
0
        public void SetUp()
        {
            ExtensionMethods.SetHeaderAction = headerManager.SetHeader;
            ExtensionMethods.GetHeaderAction = headerManager.GetHeader;

            dataBus = MockRepository.GenerateMock <IDataBus>();

            var databusMutator = new DataBusMessageMutator(dataBus, new DefaultDataBusSerializer());

            incomingMutator = databusMutator;
            outgoingMutator = databusMutator;
        }
예제 #2
0
        public void SetUp()
        {
            ExtensionMethods.SetHeaderAction = headerManager.SetHeader;
            ExtensionMethods.GetHeaderAction = headerManager.GetHeader;

            dataBus = MockRepository.GenerateMock<IDataBus>();

            var databusMutator = new DataBusMessageMutator(dataBus, new DefaultDataBusSerializer());

            incomingMutator = databusMutator;
            outgoingMutator = databusMutator;
        }