public void CanRetrieveDecoupledType()
        {
            Container.Add <ISampleInterface, SampleClassWithInterface>();

            ISampleInterface sample = Container.Get <ISampleInterface>();

            Assert.NotNull(sample);
            Assert.IsType <SampleClassWithInterface>(sample);
            Assert.Equal(1, sample.DoSomething());

            Container.Clear();
        }
        public void CanRetrieveTypeWithDependency()
        {
            Container.Add <ISampleInterface, SampleClassWithInterface>();
            Container.Add <SampleClassWithDependency>();

            SampleClassWithDependency sample = Container.Get <SampleClassWithDependency>();

            Assert.NotNull(sample);

            ISampleInterface sampleInterface = sample.GetSampleInterface();

            Assert.NotNull(sampleInterface);
            Assert.Equal(1, sampleInterface.DoSomething());

            Container.Clear();
        }