private static Option <UserState> GetTestUserState()
        {
            var cache        = new MemoryCache(new MemoryCacheOptions());
            var stateManager = new UserStateManager(cache);

            var token = stateManager.CreateState(1, "ABC1234");

            return(stateManager.GetState(token));
        }
        public void GetState_given_invalid_token_returns_Option_None()
        {
            var cache        = new MemoryCache(new MemoryCacheOptions());
            var stateManager = new UserStateManager(cache);

            stateManager.CreateState(1, "ABC1234");
            var result = stateManager.GetState("invalidToken");

            Assert.False(result.HasValue);
        }