Esempio n. 1
0
        public void LocatesImplementationType()
        {
            var container = new ContainerExtension();

            container.Register <IServiceMock, ServiceMock>();
            var type = container.GetRegistrationType(typeof(IServiceMock));

            Assert.NotNull(type);
            Assert.Equal(typeof(ServiceMock), type);
        }
Esempio n. 2
0
        public void LocatesImplementationTypeForNamedService()
        {
            var container = new ContainerExtension();

            container.RegisterForNavigation <ViewAMock>();
            var type = container.GetRegistrationType(nameof(ViewAMock));

            Assert.NotNull(type);
            Assert.Equal(typeof(ViewAMock), type);
        }