public void CanCreateView()
 {
     var serviceLocator = new UnityServiceLocatorAdapter(new UnityContainer());
     var objectFactory = new ObjectFactory<MockView>(serviceLocator);
     
     Assert.IsInstanceOfType(objectFactory.CreateInstance(), typeof(MockView));
     Assert.IsInstanceOfType(objectFactory.Value, typeof(MockView));
 }
        public void CanImplicitlyConvertToType()
        {
            var serviceLocator = new UnityServiceLocatorAdapter(new UnityContainer());
            var objectFactory = new ObjectFactory<MockView>(serviceLocator);

            var expected = objectFactory.CreateInstance();
            MockView view = objectFactory;

            Assert.AreEqual(expected, view);
        }