public void Initialize() { _accountHelper = new RealAccountHelper(); Guid firstUserSession = _accountHelper.GenerateValidCredentials(); _endpointHelper = new EndpointHelper(); CreateHouseholdInviteLinkResponse inviteLinkResponse = _endpointHelper.Setup() .SetAuthenticationToken(firstUserSession.ToString()) .AddHousehold(typeof(WhenTheRequestIsValid).Name) .CreateHouseholdInviteLink() .ReturnHouseholdLink(); Guid secondUserSession = _accountHelper.GenerateValidCredentials(); _endpointHelper.Setup().SetAuthenticationToken(secondUserSession.ToString()); _joinHouseholdResponse = _endpointHelper.JoinHousehold(inviteLinkResponse.InviteLink); }
public void Initialize() { _accountHelper = new RealAccountHelper(); Guid validSessionId = _accountHelper.GenerateValidCredentials(); _endpointHelper = new EndpointHelper(); _endpointHelper.Setup() .SetAuthenticationToken(validSessionId.ToString()) .AddHousehold(typeof(WhenTheUserIsValidAndDoesNotBelongToAHousehold).Name); _getHouseholdResponse = _endpointHelper.GetHousehold(); }