private static ISession MockHttpContext() { MockHttpSession httpcontext = new MockHttpSession(); httpcontext.Set <string>(SessionConstants.EmailClaim, RoleGridControllerTests.UserEmail); httpcontext.Set <string>(SessionConstants.WebServicesUrl, RoleGridControllerTests.Endpoint); httpcontext.Set <string>(SessionConstants.EncodedUserId, RoleGridControllerTests._user.Id.ToString().Base64Encode()); httpcontext.Set <UserModel>(SessionConstants.CurrentUser, RoleGridControllerTests._user); return(httpcontext); }
private static ISession MockHttpContext() { MockHttpSession httpcontext = new MockHttpSession(); httpcontext.Set <string>(SessionConstants.EmailClaim, MenuItemsViewComponentTests.UserEmail); httpcontext.Set <string>(SessionConstants.WebServicesUrl, MenuItemsViewComponentTests.Endpoint); httpcontext.Set <MainMenuModels>(SessionConstants.TopLevelMenuItems, null); httpcontext.Set <string>(SessionConstants.EncodedUserId, MenuItemsViewComponentTests._user.Id.ToString().Base64Encode()); httpcontext.Set <UserModel>(SessionConstants.CurrentUser, MenuItemsViewComponentTests._user); return(httpcontext); }