Ejemplo n.º 1
0
        public static void UserRole_DefaultImplementation_ReturnsDefaultImplementation(IContainerAdapter container)
        {
            var mapper = new ContextMapper <Role>(container, new RoleProvider(Role.User));

            mapper.RegisterDefault <IService, DefaultImplementation>();

            var service = container.GetInstance(typeof(IService));

            Assert.IsInstanceOfType(service, typeof(DefaultImplementation));
        }