public void GetProducts_ProductCountEqualsProductDTOCount()
        {
            //arrange
            var repo = Setup.SetupMockRepository();

            var api = new ProductsController(repo.Object, new NLogger(this.GetType().Name));
            var products = ((JsonNetResult)api.Products()).Data as List<ProductDTO>;

            //assert
            Assert.That(repo.Object.Products.Count(), Is.EqualTo(products.Count()));
        }
        public void GetProducts_CastedAsProductDTONotNull()
        {
            //arrange
            var repo = Setup.SetupMockRepository();

            var api = new ProductsController(repo.Object, new NLogger(this.GetType().Name));
            var products = ((JsonNetResult)api.Products()).Data as List<ProductDTO>;

            //assert
            Assert.That(products, Is.Not.Null);
        }