public void BikeFactory_CreateBike_ReturnsInstanceOfIBike() { // Arrange // Act // Assert Assert.IsInstanceOfType(BikeFactory.CreateBike(BikeType.Hybrid), typeof(IBike)); }
public static void Run() { Console.WriteLine($"{Environment.NewLine}*** FACTORY PATTERN ***{Environment.NewLine}"); BikeFactory.CreateBike(BikeType.Hybrid); BikeFactory.CreateBike(BikeType.Mountain); BikeFactory.CreateBike(BikeType.Road); }