示例#1
0
        public void SetUp()
        {
            Container.Reset();
            Environment.Setup();

            _sut = Container.Resolve <IOrderAckService>();
        }
        public void SetUp()
        {
            Container.Reset();
            Environment.Setup();

            _sut = Container.Resolve<IOrderAckService>();
        }
示例#3
0
 public void SetUp()
 {
     _trans       = new Mock <IEDIXmlTransactionSet>();
     _builder     = new Mock <ICreateEdiContentFrom <CreateOrderMessage> >();
     _fileCreator = new Mock <IFileCreationService>();
     _builder.Setup(b => b.BuildFromMessage(It.IsAny <CreateOrderMessage>())).Returns(_trans.Object);
     _sut = new FedexOrderAckService(_builder.Object, _fileCreator.Object);
 }
 public void SetUp()
 {
     _trans = new Mock<IEDIXmlTransactionSet>();
     _builder = new Mock<ICreateEdiContentFrom<CreateOrderMessage>>();
     _fileCreator = new Mock<IFileCreationService>();
     _builder.Setup(b => b.BuildFromMessage(It.IsAny<CreateOrderMessage>())).Returns(_trans.Object);
     _sut = new FedexOrderAckService(_builder.Object, _fileCreator.Object);
 }