public void SetupCreate(TemporaryItemCreation temporaryItemCreation, IStoreItem returnValue)
 {
     mock
     .Setup(i => i.Create(
                It.Is <TemporaryItemCreation>(obj => obj == temporaryItemCreation)))
     .Returns(returnValue);
 }
 public IStoreItem Create(TemporaryItemCreation model)
 {
     return(new StoreItem(
                new ItemId(0),
                model.Name,
                false,
                string.Empty,
                true,
                QuantityType.Unit,
                1,
                QuantityTypeInPacket.Unit,
                null,
                null,
                model.Availability.ToMonoList(),
                new TemporaryItemId(model.ClientSideId)));
 }