public void CreateObjectWithDefaultParameters()
        {
            DependencyServiceWrapper wrapper = new DependencyServiceWrapper();

            var instance1 = wrapper.Get <IService1>(XamarinUniversity.Infrastructure.DependencyScope.Global);

            Assert.IsNotNull(instance1);

            var instance2 = wrapper.Get <ServiceClass2>();

            Assert.IsNotNull(instance2);
            Assert.AreEqual(instance1, instance2.Service1);
        }
        public void CheckGetDefaultMethod()
        {
            DependencyServiceWrapper wrapper = new DependencyServiceWrapper();

            var instance1 = wrapper.Get <IService1>();

            Assert.IsNotNull(instance1);

            var instance2 = wrapper.Get <IService1>();

            Assert.IsNotNull(instance2);

            Assert.AreEqual(instance1, instance2);
        }
        public void CheckGetGlobalMethod()
        {
            DependencyServiceWrapper wrapper = new DependencyServiceWrapper();

            var instance1 = wrapper.Get <IService1>(XamarinUniversity.Infrastructure.DependencyScope.Global);

            Assert.IsNotNull(instance1);

            var instance2 = wrapper.Get <IService1>(XamarinUniversity.Infrastructure.DependencyScope.Global);

            Assert.IsNotNull(instance2);

            Assert.AreEqual(instance1, instance2);
        }
        public void CheckGetMethod()
        {
            DependencyServiceWrapper wrapper = new DependencyServiceWrapper();

            var instance = wrapper.Get <IService1>();

            Assert.IsNotNull(instance);
            Assert.IsInstanceOfType(instance, typeof(ServiceClass1));
        }