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); }
private async Task RecdVisitor(VisitorDTO visitor) { Visitor v = new Visitor { Id = visitor.Id }; await xmlDispatcherService.Recd(v); }