public MessageBusUnsubscribeResult(UnsubscribeResponseResult result)
 {
     ToEmail = result.toEmail;
     Time = result.time;
 }
 public void RetrieveUnsubscribesTest()
 {
     var result = new UnsubscribeResponseResult() {
         time = DateTime.Now,
         toEmail = "*****@*****.**"
     };
     MockHttpClient.Expect(
         x =>
         x.RetrieveUnsubscribes(
             Arg<DateTime>.Is.Equal(DateTime.Today.AddDays(-1)),
             Arg<DateTime>.Is.Equal(DateTime.Today)))
         .Return(new UnsubscribesResponse() {
             statusCode = 200,
             results = new List<UnsubscribeResponseResult> {
                 result
             }
         });
     var startDate = DateTime.Today.AddDays(-1);
     var endDate = DateTime.Today;
     var actual = StatsClient.RetrieveUnsubscribes(startDate, endDate);
     Assert.AreEqual("*****@*****.**", actual[0].ToEmail);
 }