public void VerifyInvalidProductParsing()
        {
            ProductDetail productDetail = new ProductDetail();
            var           productType   = productDetail.GetTypeOfProductFromName("");

            Assert.IsTrue(productType == null);
        }
        public void ValidateProductParsing()
        {
            ProductDetail productDetail = new ProductDetail();
            var           productType   = productDetail.GetTypeOfProductFromName("Book");

            Assert.IsTrue(productType != null && productType == TypeOfProduct.Book);
        }
        public void ValidateCaseInsensitiveProductParsing()
        {
            ProductDetail productDetail = new ProductDetail();
            var           productType   = productDetail.GetTypeOfProductFromName("membership");

            Assert.IsTrue(productType != null && productType == TypeOfProduct.Membership);
        }