public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid expiredSessionId = _fakeAccountHelper.GenerateValidExpiredCredentials();

            _endpointHelper = new EndpointHelper();
            _endpointHelper.Setup().SetAuthenticationToken(expiredSessionId.ToString());
        }
        public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials();

            _endpointHelper = new EndpointHelper();
            _endpointHelper.Setup()
            .SetAuthenticationToken(validSessionId.ToString());

            _getHouseholdResponse = _endpointHelper.GetHousehold();
        }
Ejemplo n.º 3
0
        public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials();

            _endpointHelper = new EndpointHelper();
            _inviteLink     = _endpointHelper.Setup()
                              .SetAuthenticationToken(validSessionId.ToString())
                              .CreateHouseholdInviteLink()
                              .ReturnHouseholdLink();
        }
        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);
        }
Ejemplo n.º 5
0
        public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials();

            _endpointHelper = new EndpointHelper();
            _billId         = _endpointHelper.Setup()
                              .SetAuthenticationToken(validSessionId.ToString())
                              .AddBill(typeof(WhenTheUserSuppliesAValidId).Name)
                              .ReturnAddedBillIds()[0];
            string responseContent = _endpointHelper.GetBills(_billId);

            _getBillListResponse = JsonConvert.DeserializeObject <GetBillListResponse>(responseContent);
        }
Ejemplo n.º 6
0
        public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials();

            _endpointHelper = new EndpointHelper();
            _endpointHelper.Setup()
            .SetAuthenticationToken(validSessionId.ToString())
            .AddShoppingItem(typeof(WhenTheUserHasShoppingItems).Name);

            string responseContent = _endpointHelper.GetShoppingItems();

            _getShoppingItemResponse = JsonConvert.DeserializeObject <GetShoppingResponse>(responseContent);
        }
        public void Initialize()
        {
            _fakeAccountHelper = new FakeAccountHelper();
            Guid validSessionId = _fakeAccountHelper.GenerateValidCredentials();

            _endpointHelper = new EndpointHelper();
            _endpointHelper.Setup()
            .SetAuthenticationToken(validSessionId.ToString())
            .AddOverdueBill()
            .AddCompletedBill();

            string responseContent = _endpointHelper.GetBills();

            _getBillListResponse = JsonConvert.DeserializeObject <GetBillListResponse>(responseContent);
        }