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(); ContentAreasServiceAgent.GetByCollectionNameAndApiKey(ApiKey, CollectionName) .Returns(x => { throw new ApiKeyNotValidException(); }); SystemSettings.ApiKey.Returns(ApiKey); _result = LabelCollectionRetriever.Get(CollectionName); }