public void Initialize() { _fakeAccountHelper = new FakeAccountHelper(); Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials(); _endpointHelper = new EndpointHelper(); _endpointHelper.Setup() .SetAuthenticationToken(validSessionId.ToString()); string responseContent = _endpointHelper.GetToDoItems(); _getToDoTaskResponse = JsonConvert.DeserializeObject <GetToDoResponse>(responseContent); }