예제 #1
0
 public MyApp(IUnityContainer container)
 {
     vechicleFactory = container.Resolve <IVechicleFactory>(nameof(VechileType.Low));
 }
예제 #2
0
        public void Should_create_a_Car_of_the_specified_type(IVechicleFactory vechicleFactory, Type expectedCarType)
        {
            ICar result = vechicleFactory.CreateCar();

            Assert.IsType(expectedCarType, result);
        }