コード例 #1
0
 protected override void Context()
 {
     _executionContext              = A.Fake <IOSPSuiteExecutionContext>();
     _applicationConfiguration      = A.Fake <IApplicationConfiguration>();
     _projectRetriever              = A.Fake <IProjectRetriever>();
     _applicationDiscriminator      = A.Fake <IApplicationDiscriminator>();
     _relatedItemSerializer         = A.Fake <IRelatedItemSerializer>();
     _relatedItemDescriptionCreator = A.Fake <IRelatedItemDescriptionCreator>();
     _relatedItemTypeRetriever      = A.Fake <IRelatedItemTypeRetriever>();
     _iconMapper = A.Fake <IFileExtensionToIconMapper>();
     sut         = new RelatedItemFactory(_executionContext, _applicationConfiguration, _projectRetriever,
                                          _applicationDiscriminator, _relatedItemSerializer, _relatedItemDescriptionCreator,
                                          _relatedItemTypeRetriever, _iconMapper);
 }
コード例 #2
0
 public RelatedItemFactory(IOSPSuiteExecutionContext executionContext,
                           IApplicationConfiguration applicationConfiguration,
                           IProjectRetriever projectRetriever,
                           IApplicationDiscriminator applicationDiscriminator,
                           IRelatedItemSerializer relatedItemSerializer,
                           IRelatedItemDescriptionCreator relatedItemDescriptionCreator,
                           IRelatedItemTypeRetriever relatedItemTypeRetriever,
                           IFileExtensionToIconMapper iconMapper)
 {
     _executionContext              = executionContext;
     _applicationConfiguration      = applicationConfiguration;
     _projectRetriever              = projectRetriever;
     _applicationDiscriminator      = applicationDiscriminator;
     _relatedItemSerializer         = relatedItemSerializer;
     _relatedItemDescriptionCreator = relatedItemDescriptionCreator;
     _relatedItemTypeRetriever      = relatedItemTypeRetriever;
     _iconMapper = iconMapper;
 }