コード例 #1
0
 public new virtual void SetUp()
 {
     SystemSettings.ApiKey.Returns(ApiKey);
     ContentAreasServiceAgent.GetByCollectionNameAndApiKey(ApiKey, CollectionName).Returns(contentAreas);
     LabelCollectionMapper.Map(contentAreas).Returns(mappedValueFromServiceAgent);
     result = LabelCollectionRetriever.Get(CollectionName);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public virtual void SetUp()
 {
     ContentAreaMapper     = Substitute.For <IContentAreaMapper>();
     LabelCollectionMapper = new LabelCollectionMapper(ContentAreaMapper);
 }