public new virtual void SetUp() { SystemSettings.ApiKey.Returns(ApiKey); ContentAreasServiceAgent.GetByCollectionNameAndApiKey(ApiKey, CollectionName).Returns(contentAreas); LabelCollectionMapper.Map(contentAreas).Returns(mappedValueFromServiceAgent); result = LabelCollectionRetriever.Get(CollectionName); }
public new virtual void SetUp() { base.SetUp(); contentAreasToMap = new List <ContentArea> { contentarea1, contentarea2 }; ContentAreaMapper.Map(contentarea1).Returns(mappedContentArea1); ContentAreaMapper.Map(contentarea2).Returns(mappedContentArea2); result = LabelCollectionMapper.Map(contentAreasToMap); }