예제 #1
0
        public async Task Should_Get_Script()
        {
            var testCase = new NavigationTestCase<int, long>(1);
            var scriptManager = new NavigationScriptManager<int, long>(testCase.UserNavigationManager)
            {
                AbpSession = new MyChangableSession<int, long> { UserId = 1 }
            };

            var script = await scriptManager.GetScriptAsync();
            script.ShouldNotBeNullOrEmpty();
        }
        public void Test1()
        {
            var testCase = new NavigationTestCase();
            var scriptManager = new NavigationScriptManager(testCase.UserNavigationManager)
            {
                AbpSession = new MyChangableSession { UserId = Guid.NewGuid() }
            };

            var script = scriptManager.GetScript();
            script.ShouldNotBeNullOrEmpty();
        }