public void Stage005_GetOptionByProductOptionIdTest()
        {
            var productOptionRepo = new ProductOptionsService();
            var output            = productOptionRepo.GetOptionByProductOptionId(new Guid("9ae6f477-a010-4ec9-b6a8-92a85d6c5f03"));

            Assert.IsNotNull(output);
            Assert.AreEqual(new Guid("9ae6f477-a010-4ec9-b6a8-92a85d6c5f03"), output.Id);
        }
        public void Stage010_DeleteProductOptionTest()
        {
            var productRepo           = new ProductsService();
            var createdProductDetails = productRepo.GetAllProductsByName("Nokia 3310");

            var productOptionRepo           = new ProductOptionsService();
            var createdProductOptionDetails = productOptionRepo.GetOptionsByProductId(createdProductDetails.Items[0].Id);

            productOptionRepo.DeleteProductOption(createdProductOptionDetails.Items[0].Id);

            var output = productOptionRepo.GetOptionByProductOptionId(createdProductOptionDetails.Items[0].Id);

            Assert.IsNull(output);
        }
        public void Stage009_UpdateProductOptionTest()
        {
            var productRepo           = new ProductsService();
            var createdProductDetails = productRepo.GetAllProductsByName("Nokia 3310");

            var productOptionRepo           = new ProductOptionsService();
            var createdProductOptionDetails = productOptionRepo.GetOptionsByProductId(createdProductDetails.Items[0].Id);

            var input = new ProductOption
            {
                Id          = createdProductOptionDetails.Items[0].Id,
                ProductId   = createdProductOptionDetails.Items[0].ProductId,
                Name        = "Midnight Grey",
                Description = "Grey Nokia"
            };

            productOptionRepo.UpdateProductOption(input);

            var output = productOptionRepo.GetOptionByProductOptionId(createdProductOptionDetails.Items[0].Id);

            Assert.IsNotNull(output);
            Assert.AreEqual("Midnight Grey", output.Name);
        }