I'm new to Moq, currently, the problem is when I try to get a collection of the object (eg WebStore) its works as expected,
but when I try to get a single object from it's not work as expected,

could you please guide me on how to get a single object from the repository

```
private Mock<WebStore> _webstore; 
[SetUp]
public void SetUp()
{
  ...

    _unitOfWork = new Mock<IUnitOfWork>();           
    _webstore = new Mock<WebStore>();
    ...
}    

```

### Methods

```
public WebStore GetAllWebstore()
{            
   var webstoreDat = unitOfWork.GetRepository<WebStore>().GetAll();
   return webstoreData;
}

public WebStore GetWebstorebyId(int webstoreId)
{            
     var webstoreData = unitOfWork.GetRepository<WebStore>()
          .Get(store => store.WebStoreId == webstoreId).FirstOrDefault();
     return webstoreData;
}

```

### Test methods

```
[Test]
public void GetWebstore_All()
{
    //
    var webStoreId = 1;
    var customerName = "A";
    var listWebstore = new List<WebStore>() { new WebStore { WebStoreId = webStoreId, CustomerName = customerName } };
    var webstore = new WebStore { WebStoreId = webStoreId, CustomerName = customerName };

   //Set up Mock        
    _unitOfWork.Setup(uow => uow.GetRepository<WebStore>().GetAll()).Returns(listWebstore); // working

    ...
}

```

```
[Test]
public void GetWebstore_GetSingle()
{
    //
    var webStoreId = 1;
    var customerName = "A";
    var listWebstore = new List<WebStore>() { new WebStore { WebStoreId = webStoreId, CustomerName = customerName } };
    var webstore = new WebStore { WebStoreId = webStoreId, CustomerName = customerName };

   //Set up Mock
    _unitOfWork.Setup(uow => uow.GetRepository<WebStore>()
    .Get(store => store.WebStoreId == webStoreId, null, "", 0, 0).FirstOrDefault()).Returns(webstore);  **//Not working** 

    ...
}

```