private IList <ProductEntity> GetProducts(SalesEntity entity) { var ids = entity.Products.Select(x => x.Id).ToArray(); var products = RepositoryAlbum.Find(x => ids.Contains(x.Id)).ToList(); return(Mapper.Map <List <ProductEntity> >(products)); }
public void InitializeTests() { context = new Mock.Database.MockData.MockAlbumTests().MockContext; repos = new RepositoryAlbum(new Uow(context.Object)); }