public void When_Only_String_TargetType_Exist_For_Mvc_Then_Returns_Empty_List_For_Int_TargetType()
        {
            var storageMock = new Mock<ITagStorageAdapter>();
            var tagStringRef = storageMock.WithTagInStorageOfType("Mvc", "System.String");

            var tagFinder = new TagTargetReferenceFinder(storageMock.Object);
            List<TagTargetReference> refs = tagFinder.FindByTag(new Tag("Mvc"), typeof(int));

            Assert.That(refs, Is.Empty);
        }
        public void When_One_Target_Exists_For_Mvc_Then_Returns_TargetReference()
        {
            var storageMock = new Mock<ITagStorageAdapter>();
            var tagRef = storageMock.WithTagInStorage("Mvc");

            var tagFinder = new TagTargetReferenceFinder(storageMock.Object);
            List<TagTargetReference> refs = tagFinder.FindByTag(new Tag("Mvc"));

            Assert.That(refs, Contains.Item(new TagTargetReference()
                                            {
                                                FullTypeName = tagRef.FullTypeName,
                                                Id = tagRef.Id
                                            }));
        }
        public void When_Different_Targets_Exist_For_Mvc_Then_Returns_String_For_StringTyped_Target()
        {
            var storageMock = new Mock<ITagStorageAdapter>();
            var tagStringRef = storageMock.WithTagInStorageOfType("Mvc", "System.String");
            var tagGuidRef = storageMock.WithTagInStorageOfType("Mvc", "System.Guid");

            var tagFinder = new TagTargetReferenceFinder(storageMock.Object);
            List<TagTargetReference> refs = tagFinder.FindByTag(new Tag("Mvc"), typeof(string));

            Assert.That(refs, Contains.Item(new TagTargetReference()
            {
                FullTypeName = tagStringRef.FullTypeName,
                Id = tagStringRef.Id
            }));
        }