public void SimpleServiceResolver_non_existant_returns_null()
        {
            IServiceResolver resolver = GetResolver();
            var actual = resolver.QueryService <TestService>();

            Assert.IsNull(actual);
        }
        public void SimpleServiceResolver_store_correct_type()
        {
            IServiceResolver resolver = GetResolver();

            resolver.RegisterService <ITestService>(() => new TestService());
            var actual = resolver.QueryService <TestService>();

            Assert.IsNull(actual);
        }
        public void SimpleServiceResolver_registration_and_query_works()
        {
            IServiceResolver resolver = GetResolver();

            resolver.RegisterService <ITestService>(() => new TestService());
            var actual = resolver.QueryService <ITestService>();

            Assert.IsNotNull(actual);
            Assert.IsInstanceOfType(actual, typeof(ITestService));
            Assert.IsInstanceOfType(actual, typeof(TestService));
        }