public void Register()
        {
            var file = @"c:\temp\myfile.txt";

            var uploads = new WaitingUploads();
            var token   = uploads.Register(file);

            Assert.IsTrue(uploads.HasRegistration(token));
            Assert.AreEqual(file, uploads.Deregister(token));
        }
        public void RegisterWithEmptyPath()
        {
            var uploads = new WaitingUploads();

            Assert.Throws <ArgumentException>(() => uploads.Register(string.Empty));
        }