Beispiel #1
0
        public RealmExplorer(string region, IJsonSource jsonSource, JavaScriptSerializer serializer)
        {
            if (region == null) throw new ArgumentNullException("region");
            if (jsonSource == null) throw new ArgumentNullException("jsonSource");
            if (serializer == null) throw new ArgumentNullException("serializer");

            this.region = region;
            this.jsonSource = jsonSource;
            this.serializer = serializer;
        }
Beispiel #2
0
 public JsonOverHttpSourcePersonRepository(IJsonSource <PersonContract[]> source)
 {
     this.source = source;
 }
Beispiel #3
0
 public ChessEngine(IJsonSource movementsSource, IJsonParser movementsParser, MovementValidator validator)
 {
     _movementsSource = movementsSource;
     _movementsParser = movementsParser;
     _validator       = validator;
 }
 public CharacterExplorer(IJsonSource jsonSource)
     : this("us", jsonSource, new JavaScriptSerializer())
 {
 }
Beispiel #5
0
 public RealmExplorer(string region, IJsonSource jsonSource)
     : this(region, jsonSource, new JavaScriptSerializer())
 {
 }
Beispiel #6
0
 public RealmExplorer(IJsonSource jsonSource)
     : this("us", jsonSource, new JavaScriptSerializer())
 {
 }