Beispiel #1
0
        public void RedisRemoveActivity_GetOutputs_EmptyList()
        {
            var mockResourceCatalog = new Mock <IResourceCatalog>();
            var redisRemoveActivity = new RedisRemoveActivity(mockResourceCatalog.Object, null);

            var outputs = redisRemoveActivity.GetOutputs();

            //------------Assert Results-------------------------
            Assert.AreEqual(2, outputs.Count);
            Assert.IsNull(outputs[0]);
            Assert.IsNull(outputs[1]);
        }
Beispiel #2
0
        public void RedisRemoveActivity_GetOutputs_ResultList()
        {
            var mockResourceCatalog = new Mock <IResourceCatalog>();
            var expectedSourceId    = Guid.NewGuid();
            var redisRemoveActivity = new RedisRemoveActivity(mockResourceCatalog.Object, null)
            {
                Key      = "[[Key]]",
                Result   = "[[res]]",
                Response = "abcde",
                SourceId = expectedSourceId
            };

            var outputs = redisRemoveActivity.GetOutputs();

            //------------Assert Results-------------------------
            Assert.AreEqual(2, outputs.Count);
            Assert.AreEqual("abcde", outputs[0]);
            Assert.AreEqual("[[res]]", outputs[1]);
        }