This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(scraper). | |
| -compile(export_all). | |
| start() -> | |
| scrape(1). | |
| scrape(X) -> | |
| inets:start(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(scraper). | |
| -compile(export_all). | |
| start() -> | |
| spawn(fun() -> start_scraper_with_monitoring() end). | |
| start_scraper_with_monitoring() -> | |
| Pid = start_scraper_on_available_node(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EnglishJobsHandler | |
| { | |
| private readonly IEnglishJobsFinder englishJobsFinder; | |
| private readonly IAllJobsFinder allJobsFinder; | |
| public EnglishJobsHandler(IEnglishJobsFinder englishJobsFinder, IAllJobsFinder allJobsFinder) | |
| { | |
| this.englishJobsFinder = englishJobsFinder; | |
| this.allJobsFinder = allJobsFinder; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EnglishJobsHandler | |
| { | |
| private readonly IEnglishJobsFinder englishJobsFinder; | |
| private readonly IAllJobsFinder allJobsFinder; | |
| public EnglishJobsHandler(IEnglishJobsFinder englishJobsFinder, IAllJobsFinder allJobsFinder) | |
| { | |
| this.englishJobsFinder = englishJobsFinder; | |
| this.allJobsFinder = allJobsFinder; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EnglishJobsHandler | |
| { | |
| private readonly IEnglishJobsFinder englishJobsFinder; | |
| private readonly IAllJobsFinder allJobsFinder; | |
| public EnglishJobsHandler(IEnglishJobsFinder englishJobsFinder, IAllJobsFinder allJobsFinder) | |
| { | |
| this.englishJobsFinder = englishJobsFinder; | |
| this.allJobsFinder = allJobsFinder; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class JobsFinder<TJobFinder, TModel> where TJobFinder : ICommonJobFinder // always great to add generics & had to create common job finder interface | |
| where TModel : ICommonJobsModel, new() // nice | |
| { | |
| private readonly IAllJobsFinder allJobsFinder; | |
| private readonly TJobFinder specificJobFinder; | |
| public JobsFinder(IAllJobsFinder allJobsFinder, TJobFinder specificJobFinder) | |
| { | |
| this.allJobsFinder = allJobsFinder; | |
| this.specificJobFinder = specificJobFinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class JobsFinder<TJobFinder, TModel> where TJobFinder : ICommonJobFinder | |
| where TModel : ICommonJobsModel, new() | |
| { | |
| private readonly IAllJobsFinder allJobsFinder; | |
| private readonly TJobFinder specificJobFinder; | |
| public JobsFinder(IAllJobsFinder allJobsFinder, TJobFinder specificJobFinder) | |
| { | |
| this.allJobsFinder = allJobsFinder; | |
| this.specificJobFinder = specificJobFinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class Creating_a_useful_plan : RavenTestsBase | |
| { | |
| private FubuContinuation response; | |
| private LifeLesson lesson; | |
| [TestFixtureSetUp] | |
| public void When_adding_a_super_useful_plan() | |
| { | |
| BeginCleanSession(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class RavenTestsBase | |
| { | |
| protected IDocumentSession Session; | |
| private EmbeddableDocumentStore store; | |
| public EmbeddableDocumentStore Store { get; private set; } | |
| public void BeginCleanSession() | |
| { | |
| Store = store = new EmbeddableDocumentStore | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Post | |
| { | |
| private readonly IDocumentSession session; | |
| private readonly ISecurityContext security; | |
| public Post(IDocumentSession session, ISecurityContext security) | |
| { | |
| this.session = session; | |
| this.security = security; | |
| } |
OlderNewer