Esempio n. 1
0
        public static void Dependency(string expected, string username)
        {
            // Arrange

            // Act
            var result = HistoryLogKeyHelper.Dependency(username);

            // Assert
            Assert.Equal(expected, result);
        }
Esempio n. 2
0
        private LinkedCacheDependency HistoryDependency(string username)
        {
            var key = string.Concat(Keyspace, HistoryLogKeyHelper.Dependency(username));

            return(new LinkedCacheDependency(m_cache, key, DateTime.Now.Add(HistoryLifetime)));
        }