Example #1
0
        public void Add()
        {
            var rh = new OperationHolder();

            rh.Add("operation1", "principal1");

            Assert.Equal(1, rh.OperationCount);
        }
Example #2
0
        public void ContainsPrincipal()
        {
            var rh = new OperationHolder();

            rh.Add("operation1", "principal1");

            Assert.True(rh.ContainsPrincipal("operation1", "principal1"));
        }