Пример #1
0
 public WikiQueryBuilder(
     Core.IWebServiceFactory serviceFactory, 
     WikiQueryContext context, 
     IWikiConfiguration configuration,
     IMapper<WebServiceResponse, WikiResult> mapper)
 {
     this.serviceFactory = serviceFactory;
     this.context = context;
     this.configuration = configuration;
     this.mapper = mapper;
 }
Пример #2
0
 public void Teardown()
 {
     factory = null;
     context = null;
     target = null;
 }
Пример #3
0
        public void Setup()
        {
            factory = Substitute.For<Core.IWebServiceFactory>();
            context = Substitute.For<WikiQueryContext>();
            configuration = Substitute.For<IWikiConfiguration>();
            mapper = Substitute.For<IMapper<WebServiceResponse, WikiResult>>();
            titles = new string[3] { TITLE1, TITLE2, TITLE3 };

            target = new WikiQueryBuilder(factory, context, configuration, mapper);
        }