public bool UpdateScanByUser(UpdateUserNameModel updateModel)
        {
            var successful = _repo.UpdateScanByUser(new UpdateUserNameQuery()
            {
                UserName = _identity.Name, DocNum = updateModel.DocNum, SerialNum = updateModel.SerialNum
            });

            return(successful);
        }
        public void UpdateScanByUser_HappyPath()
        {
            var model = new UpdateUserNameModel {
                DocNum = 123, SerialNum = 456
            };

            _identity.Stub(i => i.Name).Return("USERNAME");
            _repo.Stub(r => r.UpdateScanByUser(Arg <UpdateUserNameQuery> .Matches(a => a.UserName.Equals("USERNAME") && a.DocNum.Equals(123) && a.SerialNum.Equals(456)))).Return(true);

            var actual = new OrderDeliveryService(_repo, _settings, _identity).UpdateScanByUser(model);

            Assert.IsTrue(actual);
        }