static void Main(string[] args)
    {
        BaseFoo foo = new Foo1();

        var bar = ConcreteClassFactory.CreateClass(ConcreteClassFactory.ConcreteClassType.ConcreteClass1);

        bar.SomeMethod(foo);
    }
        public void Build_ShouldReturn_Car()
        {
            var service = new ConcreteClassFactory();

            var actual = service.Build(4);

            Assert.Contains("Car", actual.Broadcast);
            Assert.IsType <Car>(actual);
        }
        public void Build_ShouldReturn_Bicycle()
        {
            var service = new ConcreteClassFactory();

            var actual = service.Build(2);

            Assert.Contains("Bicycle", actual.Broadcast);
            Assert.IsType <Bicycle>(actual);
        }