public void PriceCategoryDeleteNegativeTest()
        {
            var           id            = 1;
            PriceCategory priceCategory = null;

            var toDTOMapper = new MapperConfiguration(cfg =>
                                                      cfg.CreateMap <PriceCategory, PriceCategoryDTO>()).CreateMapper();
            var priceCategoryDTO = toDTOMapper.Map <PriceCategory, PriceCategoryDTO>(priceCategory);


            PriceCategoryServiceMock.Setup(a => a.Get(id)).Returns(priceCategoryDTO);

            PriceCategoryController controller = new PriceCategoryController(PriceCategoryServiceMock.Object);
            var httpResponse = controller.Delete(httpRequest, id);
            var result       = httpResponse.StatusCode;

            Assert.AreEqual(HttpStatusCode.NotFound, result);
        }
        public void PriceCategoryDeleteTest()
        {
            var id            = 1;
            var priceCategory = DataForTests.PriceCategories[id - 1];

            var toDTOMapper = new MapperConfiguration(
                cfg =>
            {
                cfg.CreateMap <PriceCategory, PriceCategoryDTO>().ReverseMap();
                cfg.CreateMap <Category, CategoryDTO>().ReverseMap();
            }).CreateMapper();
            var priceCategoryDTO = toDTOMapper.Map <PriceCategory, PriceCategoryDTO>(priceCategory);


            PriceCategoryServiceMock.Setup(a => a.Get(id)).Returns(priceCategoryDTO);

            PriceCategoryController controller = new PriceCategoryController(PriceCategoryServiceMock.Object);
            var httpResponse = controller.Delete(httpRequest, id);
            var result       = httpResponse.StatusCode;

            Assert.AreEqual(HttpStatusCode.OK, result);
        }