Esempio n. 1
0
        public async Task Recd_XMLDispatch_Async()
        {
            var result = await Service.Recd(new Visitor { Id = 1 });

            var dispatches = Database.XMLDispatchManager.GetAll();
            var dispatch   = await Database.XMLDispatchManager.GetByIdAsync(1);

            //assert
            Assert.AreEqual(2, dispatches.Count());
            Assert.IsTrue(result.Succedeed);
            Assert.IsNotNull(dispatch);
            Assert.AreEqual(Status.Recd, dispatch.Status);
            Assert.AreEqual(Operation.Done, dispatch.Operation);
        }
Esempio n. 2
0
 private async Task RecdVisitor(VisitorDTO visitor)
 {
     Visitor v = new Visitor {
         Id = visitor.Id
     };
     await xmlDispatcherService.Recd(v);
 }