Пример #1
0
        public void ShouldGetGenericInstanceUsingFactory(IFooFactory fooFactory)
        {
            var instance = fooFactory.GetFoo <Disposable>(42);

            Assert.IsType <Foo <Disposable> >(instance);
        }
Пример #2
0
        public void ShoudGetInstanceUsingFactory(IFooFactory fooFactory)
        {
            var instance = fooFactory.GetFoo(42);

            Assert.IsType <Foo>(instance);
        }