Ejemplo n.º 1
0
        public static CircleOperation GetCircleOperation()
        {
            IUnityContainer container = new UnityContainer();

            container.RegisterType <ICircleOperation, CircleOperation>();
            CircleOperation circleOperation = container.Resolve <CircleOperation>();

            return(circleOperation);
        }
        public static ICircleOperation GetCircleOperationObject()
        {
            UnityContainer unityContainer = new UnityContainer();

            unityContainer.RegisterType <ICircleOperation, CircleOperation>();
            CircleOperation circleOperation = unityContainer.Resolve <CircleOperation>();

            return(circleOperation);
            //throw new NotImplementedException();
        }