Skip to content

Instantly share code, notes, and snippets.

/-/

Marc Duiker marcduiker

/-/
View GitHub Profile
View ItemProvider.cs
using Sitecore.Data;
using Sitecore.Data.Items;
using SitecorePlayground.Common.Interfaces.Providers;
namespace SitecorePlayground.Common.Providers
{
public class ItemProvider : IItemProvider
{
public Item GetItem(ID itemId)
{
View AuthorProviderBasedOnRegularItem.cs
using Sitecore.Data;
using Sitecore.Data.Items;
using SitecorePlayground.Common.Interfaces.Providers;
using SitecorePlayground.News.Models;
namespace SitecorePlayground.News.Providers
{
public class AuthorProviderBasedOnRegularItem
{
View IItemProvider.cs
using Sitecore.Data;
using Sitecore.Data.Items;
namespace SitecorePlayground.Common.Interfaces.Providers
{
public interface IItemProvider
{
Item GetItem(ID itemId);
}
}
View AuthorProviderBasedOnRegularItem.cs
using System;
using Moq;
using NUnit.Framework;
using Sitecore.Data;
using Sitecore.Data.Items;
using Sitecore.FakeDb;
View Author.cs
namespace SitecorePlayground.News.Models
{
public class Author
{
public string Name { get; set; }
public string Company { get; set; }
}
}
View AuthorProviderBasedOnItemAdapterTests.cs
using System;
using Moq;
using NUnit.Framework;
using Sitecore.Data;
using SitecorePlayground.Common.Interfaces.Adapters;
using SitecorePlayground.Common.Interfaces.Providers;
View IItemProvider.cs
using Sitecore.Data;
using Sitecore.Data.Items;
using SitecorePlayground.Common.Interfaces.Adapters;
namespace SitecorePlayground.Common.Interfaces.Providers
{
public interface IItemProvider
{
Item GetItem(ID itemId);
View ItemAdapter.cs
using System.Collections.Generic;
using System.Linq;
using Sitecore.Data;
using Sitecore.Data.Items;
using Sitecore.Diagnostics;
using SitecorePlayground.Common.Interfaces.Adapters;
namespace SitecorePlayground.Common.Adapters
View AuthorProviderBasedOnItemAdapter.cs
using Sitecore.Data;
using SitecorePlayground.Common.Interfaces.Adapters;
using SitecorePlayground.Common.Interfaces.Providers;
using SitecorePlayground.News.Models;
namespace SitecorePlayground.News.Providers
{
public class AuthorProviderBasedOnItemAdapter
{
View ItemProvider.cs
using Sitecore.Data;
using Sitecore.Data.Items;
using SitecorePlayground.Common.Adapters;
using SitecorePlayground.Common.Interfaces.Adapters;
using SitecorePlayground.Common.Interfaces.Providers;
namespace SitecorePlayground.Common.Providers
{
public class ItemProvider : IItemProvider
{
You can’t perform that action at this time.