コード例 #1
0
        public void Cfg_CreateConfig_CacheManagerHandle()
        {
            // arrange act
            var col = new CacheManagerHandle()
            {
                IsBackplaneSource = true,
                Name           = "name",
                ExpirationMode = ExpirationMode.Absolute.ToString(),
                Timeout        = "22m",
                RefHandleId    = "ref"
            };

            // assert
            col.Name.Should().Be("name");
            col.ExpirationMode.Should().Be(ExpirationMode.Absolute.ToString());
            col.Timeout.Should().Be("22m");
            col.RefHandleId.Should().Be("ref");
            col.IsBackplaneSource.Should().BeTrue();
        }
コード例 #2
0
        public void Cfg_CreateConfig_CacheManagerHandle()
        {
            // arrange act
            var col = new CacheManagerHandle()
            {
                IsBackplaneSource = true,
                Name = "name",
                ExpirationMode = ExpirationMode.Absolute.ToString(),
                Timeout = "22m",
                RefHandleId = "ref"
            };

            // assert
            col.Name.Should().Be("name");
            col.ExpirationMode.Should().Be(ExpirationMode.Absolute.ToString());
            col.Timeout.Should().Be("22m");
            col.RefHandleId.Should().Be("ref");
            col.IsBackplaneSource.Should().BeTrue();
        }