public void DataFactory_DoesNotThrow_Save()
 {
     Assert.DoesNotThrow(delegate
     {
         var request = NPIRequest.Create(new ZipcodeMetadata());
         DataFactory.SaveProvider(NpiResponse.Create(request, ""));
     });
 }
        private void ScheduleNext(NpiResponse response)
        {
            var add    = response.Request.Address;
            var filter = Builders <ZipcodeMetadata> .Filter.Eq(x => x._id, add._id);

            var update = Builders <ZipcodeMetadata> .Update
                         .Set(x => x.BatchCount, add.BatchCount + 1)
                         .Set(x => x.Processed, FALSE);

            zipEntries.UpdateOne(filter, update);

            var request = NPIRequest.Next(response.Request);

            WebRequestScheduler.Instance.Submit(request);
        }
 public static NpiResponse Create(NPIRequest request, string response)
 {
     return(new NpiResponse(request, response));
 }
 private NpiResponse(NPIRequest request, string json)
 {
     this.Request  = request;
     this.Contents = json;
 }
 public void Setup()
 {
     DataFactory.Initialize(new TestDataProvider
                                (NpiResponse.Create(NPIRequest.Create(new ZipcodeMetadata()), "")));
 }