public async Task VisitorsController_Update_Test()
        {
            bool called            = false;
            var  visitorRepository = new Data.Repositories.Fakes.StubIVisitorRepository();

            var visitor = new Visitor()
            {
                VisitorId = 1,
            };

            visitorRepository.UpdateAsyncVisitor = (visitorUpdate) =>
            {
                Assert.IsTrue(visitorUpdate.VisitorId == visitor.VisitorId);
                called = true;
                return(Task.FromResult(string.Empty));
            };

            var target = new VisitorsController(visitorRepository);
            await target.Update(visitor);

            Assert.IsTrue(called);
        }
 public async Task VisitorsController_Update_Failed_Test()
 {
     var visitorRepository = new Data.Repositories.Fakes.StubIVisitorRepository();
     var target            = new VisitorsController(visitorRepository);
     await target.Update(null);
 }