public async Task GivenThreeProducts_BuyProductWithCheapestConnector_ShouldBeLowestPriceConnector() { // Assemble var giftService = new BuyGiftService(_mockBollieConnector.Object, _mockCoolBereConnector.Object, _mockAliBlaBlaConnector.Object); // Assign var result = await giftService.BuyCheapestGift(5); // Act Assert.That(result.ToLower().Contains("aliblabla")); }
public async Task GivenThreeProducts_GetCheapestConnector_ShouldBeLowestPriceConnector() { // Assemble var giftService = new BuyGiftService(_mockBollieConnector.Object, _mockCoolBereConnector.Object, _mockAliBlaBlaConnector.Object); // Act var result = await giftService.GetCheapestConnector(); // Assert Assert.AreEqual("https://www.aliblabla.com/cadeau", result.Url); }