private static LicenseChecker GetRemoteChecker(LicenseOptions options, Sys sys) { var checkUrl = options.CheckUrl; if (String.IsNullOrWhiteSpace(checkUrl)) return new NullRemoteChecker(); var submitUrl = options.SubmitUrl.NullIfEmpty() ?? checkUrl; var remote = new WebRemote(submitUrl); var builder = new WebRequestBuilder(sys, checkUrl); var parser = new WebResponseParser(); return new RemoteCheckerClient(remote, builder, parser); }
private static LicenseChecker GetRemoteChecker(LicenseOptions options, Sys sys) { var checkUrl = options.CheckUrl; if (String.IsNullOrWhiteSpace(checkUrl)) { return(new NullRemoteChecker()); } var submitUrl = options.SubmitUrl.NullIfEmpty() ?? checkUrl; var remote = new WebRemote(submitUrl); var builder = new WebRequestBuilder(sys, checkUrl); var parser = new WebResponseParser(); return(new RemoteCheckerClient(remote, builder, parser)); }
public void SetUp() { sut = new WebResponseParser(); }