public void CheckIfThereIsNoBasketYet(KudosBasketDto basket)
 {
     if (basket == null)
     {
         throw new KudosBasketException(Resources.Widgets.KudosBasket.KudosBasket.KudosBasketNotExists);
     }
 }
Exemple #2
0
        public void Should_Not_Throw_Kudos_Basket_Exception_If_There_Is_Basket_Created()
        {
            var basket = new KudosBasketDto();

            Assert.DoesNotThrow(() => _kudosBasketValidator.CheckIfThereIsNoBasketYet(basket));
        }