Example #1
0
        public void Add_Distinct_ShouldAdd()
        {
            _sut.AddLookupId <Image, string>("a");
            _sut.AddLookupId <Image, string>("b");

            Assert.Equal(new[] { "a", "b" }, _sut.LookupIds[typeof(Image)].Cast <string>());
        }
        public void AddLookupId(TLink link, LookupContext lookupContext)
        {
            var lookupId = _getLookupId(link);

            lookupContext.AddLookupId <TReference, TId>(lookupId);
        }
        public void AddLookupId(TLink link, LookupContext lookupContext)
        {
            var lookupId = _getLookupId(link);

            lookupContext.AddLookupId <TChildLinkedSourceModel, TId>(lookupId);
        }