public void InitializeTest()
        {
            //Arrange
            var restHelper = new Mock<IRestHelper>();
            var dateTimeWrapper = new Mock<IDateTimeWrapper>();
            var encodeWebClient = new EncodeWebClient(restHelper.Object, dateTimeWrapper.Object);

            //Act
            encodeWebClient.Initialize(Resource, TaskId, _tokenSource.Object);

            //Assert
            Assert.AreEqual(Resource,_encodeWebClient.Resource);
        }
        public void Initialize()
        {
            _request = new Mock<IRestRequest>();
            _response = new Mock<IRestResponse>();
            _restHelper = new Mock<IRestHelper>();
            _tokenSource=new Mock<CancellationTokenSourceWrapper>();
            _dateTimeWrapper = new Mock<IDateTimeWrapper>();
            
            _encodeWebClient = new EncodeWebClient(_restHelper.Object, _dateTimeWrapper.Object);
            _encodeWebClient.Initialize(Resource, TaskId, _tokenSource.Object);

            _dateTimeWrapper.SetupSequence(m => m.CurrentDateTime()).Returns(new DateTime(2013, 2, 25));

            _restHelper.Setup(m => m.GetResponse(It.IsAny<IRestRequest>())).Returns(_response.Object);
        }