public void SetUp()
        {
            _timeStampProviderClient = InitializeAndInject<ITimeStampProviderClient>();
            _timeStampProviderClient.Stub(s => s.GenerateTimeStamp(Arg<string>.Is.Anything))
                .Return(new TimeStampProviderApiResult())
                .WhenCalled(a=>
                                {
                                    string signature = "<signature>bla bla</signature>";
                                    var result = new TimeStampProviderApiResult
                                                     {IsSuccess = true, ApiResponse = new XmlDocument()};
                                    result.ApiResponse.LoadXml(signature);
                                    result.Signature = signature;

                                    a.ReturnValue = result;
                                });
            _timeStampProviderClient.Stub(s => s.VerifyTimeStamp(Arg<string>.Is.Anything, Arg<string>.Is.Anything))
               .Return(new TimeStampProviderApiResult())
               .WhenCalled(a =>
               {
                   var result = new TimeStampProviderApiResult();
                   result.IsSuccess = true;
                   result.ApiResponse = new XmlDocument();
                   result.ApiResponse.LoadXml("<response>bla bla</response>");

                   a.ReturnValue = result;
               });

            _timeStampService = new TimeStampService(_timeStampProviderClient);
            _content = "anything";
            _signature = "qwerty";
        }
 public void SetUp()
 {
     ObjectFactory.Configure(c => c.For<ITimeStampProviderClient>().Use<TractisDssClient>());
     _timeStampProviderClient = ObjectFactory.GetInstance<ITimeStampProviderClient>();
     _timeStampService = new TimeStampService(_timeStampProviderClient);
     _content = "anything";
     _timestampSignature = "incorrect signature";
 }