public async Task Get_All_Async_Success() { //Arrange _mapper.Setup(m => m.Map <IEnumerable <Inventory>, IEnumerable <InventoryModel> >(It.IsAny <IEnumerable <Inventory> >())).Returns(new List <InventoryModel>().AsEnumerable()); _unitOfWork.Setup(u => u.InventoryRepository.GetAllAsync()).ReturnsAsync(_lstInventory.AsEnumerable()); //Act var results = await _inventoryLogic.GetAllAsync(); //Assert Assert.IsNotNull(results); }