public async Task AccidentHTMLEmail() { var args = new NotificationArgs(); args.Args.Add("*****@*****.**"); var not = new NotificationDTO { Customer_Id = 665, NotificationType = NotificationType.AccidentPDF, //todo:replace with new accident url Id = 0 }; var service = new NotificationsController(); await service.Post(not); }
/* public async Task TestAccidentPut() { var accidentRepo = new AccidentAsyncRepository(); var accident = await accidentRepo.Get(445); accident.Country = "testy"; accident.StreetName = "westy"; accident.CicumstancesQuestion = "this is soe test cisrcumsastae"; var SUT = new AccidentsController(); await SUT.Put(accident.Id, TheModelFactoryV1.Create(accident)); return; } public async Task TestDefendantPut() { var defRepo = new OtherDriverAsyncRepository(); var def = await defRepo.Get(1); def.Title = "Testo"; def.FirstName = "Bongo"; def.LastName = "the bear"; def.DefendantPolicyNumber = "POLICY123"; def.VRN = "VR123"; var SUT = new OtherDriversController(); //get GET //TEST POST //test PUT var didPut = await SUT.Put(def.Id, TheModelFactoryV1.Create(def)); var testDefebdabt = await SUT.Get(1); return; }*/ public async Task SMS() { var args = new NotificationArgs(); args.Args.Add("447476278909"); var not = new NotificationDTO { Customer_Id = 1, NotificationType = NotificationType.AccidentSMS, //todo:replace with new accident url Id = 0 }; var service = new NotificationsController(); await service.Post(not); }