Ejemplo n.º 1
0
 public void Populate()
 {
     
     var knock = new KnockDto()
     {
         FeedId = "potato",
         Id = new Random().Next(0, 100000),
         Location = new LocationDto
         {
             Latitude = 45,
             Longitude = 60
         },
         Message = "Turn me into a french fry?"
     };
     //using (var svc = new JsonServiceClient("http://localhost:40300/"))
     //{
     //    svc.Post(new KnockPostV1() {KnockDto = knock});
     //}
     var svc = new KnockKnockMongo();
     svc.Any(new KnockPostV1 {Knock = knock});
     
     Console.WriteLine(knock.Id);
 }
 public void Gets()
 {
     var svc = new KnockKnockMongo();
     var knockDtos = svc.Get(new KnocksByLocation {Latitude = 45.4, Longitude = 60.5, Radius = 75000.0});
     Assert.That(knockDtos.Any(), "Got no Knocks. Expected 1.");
 }