예제 #1
0
        public void ItFindsTheCreateMethod()
        {
            DomainObjectLocator sut = GetSut();

            CommandMethodMapping[] result = sut.ResolveConventionalMethods(typeof(FakeObject)).ToArray();

            Assert.True(result.Any());
        }
예제 #2
0
        private IEnumerable <Type> Resolve()
        {
            DomainObjectLocator sut = GetSut();

            var asm = new List <Assembly>()
            {
                typeof(FakeObject).GetTypeInfo().Assembly
            };

            return(sut.ResolveDomainObjects(asm));
        }
        private IEnumerable <Type> Resolve()
        {
            DomainObjectLocator sut = GetSut();

            return(sut.ResolveDomainObjects(typeof(FakeObject).GetTypeInfo().Assembly));
        }
예제 #4
0
        public void ItThroesWhenNull()
        {
            DomainObjectLocator sut = GetSut();

            Assert.Throws <ArgumentNullException>(() => sut.ResolveDomainObjects(null));
        }