static void Main(string[] args) { OrderProcessingFactory orderProcessingFactory = new ConcreteOrderProcessingFactory(); Iorder order = orderProcessingFactory.getOrderDetails("Learning to Ski"); Console.WriteLine(order.ProcessOrder()); }
public void ActivatesMembershipTest(string orderType) { // Arrange // Act Iorder order = _orderProcessingFactory.getOrderDetails(orderType); // Assert Assert.True(order.GetType() == typeof(LearningToSki)); Assert.Equal("free “First Aid” video to the packing slip (the result of a court decision in 1997)", order.ProcessOrder()); }
public void GeneratePhyicalProductTest(string orderType) { // Arrange // Act Iorder order = _orderProcessingFactory.getOrderDetails(orderType); // Assert Assert.True(order.GetType() == typeof(PhysicalProduct)); Assert.Equal("packing slip for shipping", order.ProcessOrder()); }
public void ActivatesMembershipTest(string orderType) { // Arrange // Act Iorder order = _orderProcessingFactory.getOrderDetails(orderType); // Assert Assert.True(order.GetType() == typeof(ActivateMemvership)); Assert.Equal("activate the membership", order.ProcessOrder()); }
public void ActivatesMembershipTest(string orderType) { // Arrange // Act Iorder order = _orderProcessingFactory.getOrderDetails(orderType); //_emailMembership.Setup(x => x.EMailDetails(It.IsAny<string>())).Verifiable(); // Assert Assert.True(order.GetType() == typeof(UpgrateMembership)); //_emailMembership.Verify(x => x.EMailDetails(""), Times.AtLeastOnce()); Assert.Equal("Upgrated the membership", order.ProcessOrder()); }