public void CheckIfThereIsNoBasketYet(KudosBasketDTO basket) { if (basket == null) { throw new KudosBasketException(Shrooms.Resources.Widgets.KudosBasket.KudosBasket.KudosBasketNotExists); } }
public void Should_Not_Throw_Kudos_Basket_Exception_If_There_Is_Basket_Created() { var basket = new KudosBasketDTO(); Assert.DoesNotThrow(() => _kudosBasketValidator.CheckIfThereIsNoBasketYet(basket)); }