Пример #1
0
        public void GetAll_Sucessfull()
        {
            ProductBiz productBiz  = new ProductBiz(_mockUnit.Object);
            var        allPRoducts = productBiz.GetAllAsync();

            Assert.NotNull(allPRoducts);
            Assert.IsTrue(allPRoducts.Result.Count == GetAllProduct().Count);
        }
Пример #2
0
            /*
             *  Calcellation Token is
             */
            public async Task <List <Product> > Handle(Query request, CancellationToken cancellationToken)
            {
                var result = await _productBiz.GetAllAsync();

                return(result);
            }