public void OrderACoffee_Should_Return_Received_MessageUsingStub() { StarbuckStore store = new StarbuckStore(new StubStarbucks()); string result = store.OrderCoffee(2, 4); Assert.AreEqual("Your order is received.", result); }
public void OrderACoffee_Should_return_Received_Message() { //Arrange StarbuckStore store = new StarbuckStore(new FakeStarbucksStore()); //Act string result = store.OrderCoffee(2, 4); Assert.AreEqual("Your Order is received.", result); }
public void OrderACoffee_Should_Return_Received_MessageUsingMock() { var service = new Mock <IMakeACoffee>(); service.Setup(x => x.CheckIngredientAvailability()).Returns(true); //service.Setup(x => x.CoffeeMaking(It.Is<int>,It.Is<int>)).Returns("Your oredr is received"); //service.Setup(x => x.CheckIngredientAvailability()).Returns(true); StarbuckStore store = new StarbuckStore(new Starbucks()); var result = store.OrderCoffee(2, 4); //Assert.AreEqual("Your Order is received", result); }