Exemplo n.º 1
0
        public async Task TestGetInstanceId()
        {
            SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator();

            string instId = await gen.GenerateInstanceId();

            Assert.AreEqual("foo", instId);
        }
        public void TestGetInstanceId()
        {
            SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator();

            string instId = gen.GenerateInstanceId();

            Assert.AreEqual("foo", instId);
        }
Exemplo n.º 3
0
        public async Task TestGetInstanceIdFromCustomSystemProperty()
        {
            SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator();

            gen.SystemPropertyName = "blah.blah";

            string instId = await gen.GenerateInstanceId();

            Assert.AreEqual("goo", instId);
        }
        public void TestGetInstanceIdWithPostpend()
        {
            SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator();

            gen.Postpend = "2";

            string instId = gen.GenerateInstanceId();

            Assert.AreEqual("foo2", instId);
        }
Exemplo n.º 5
0
        public async Task TestGetInstanceIdWithPrependAndPostpend()
        {
            SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator();

            gen.Prepend  = "1";
            gen.Postpend = "2";

            string instId = await gen.GenerateInstanceId();

            Assert.AreEqual("1foo2", instId);
        }