public void DocFormsTest()
        {
            var rm     = CMSWebTestsResources.ResourceManager;
            var person = CreatePerson();
            var doc1   = RandomString();
            var doc2   = RandomString();

            person.UploadDocument(db, idb, rm.GetFileStream("DocFormsTest1"), doc1, "application/pdf", true);
            person.UploadDocument(db, idb, rm.GetFileStream("DocFormsTest2"), doc2, "application/pdf", false);
            var financedocs = MemberDocModel.DocForms(db, person.PeopleId, true);

            financedocs.Count().ShouldBe(1);
            financedocs.First().Name.ShouldBe(person.Name);
            financedocs.First().FormName.ShouldBe(doc1);

            var memberdocs = MemberDocModel.DocForms(db, person.PeopleId, false);

            memberdocs.Count().ShouldBe(1);
            memberdocs.First().Name.ShouldBe(person.Name);
            memberdocs.First().FormName.ShouldBe(doc2);
        }
        public void DeleteDocumentTest()
        {
            var rm     = CMSWebTestsResources.ResourceManager;
            var person = CreatePerson();

            person.UploadDocument(db, idb, rm.GetFileStream("DocFormsTest1"), RandomString(), "application/pdf", true);
            person.UploadDocument(db, idb, rm.GetFileStream("DocFormsTest1"), RandomString(), "application/pdf", false);

            var financedocs = MemberDocModel.DocForms(db, person.PeopleId, true);
            var doc1        = financedocs.First();

            MemberDocModel.DeleteDocument(db, idb, person.PeopleId, doc1.Id);
            MemberDocModel.DocForms(db.Copy(), person.PeopleId, true)
            .Count().ShouldBe(0);

            var memberdocs = MemberDocModel.DocForms(db, person.PeopleId, false);
            var doc2       = memberdocs.First();

            MemberDocModel.DeleteDocument(db, idb, person.PeopleId, doc2.Id);
            MemberDocModel.DocForms(db.Copy(), person.PeopleId, false)
            .Count().ShouldBe(0);
        }