public void ProtocolTest()
        {
            var set = new NewVipAvtoSet();
            set.AddMechanic("ivan", "ivanov", "ivanovich");
            set.AddOperator("ivan", "ivanov", "valn", "dfdss", "Оператор");
            set.SetCurrentOperator("valn");
            set.AddGroup(2007, "M1", 0, true);
            set.AddNormative(set.Groups[0].IdGroup, 0, 30);
            set.AddProtocol("4324342", set.GetShortMechanicName(set.Mechanics[0].IdMechanic), DateTime.Now,
                set.Groups[0].IdGroup, true, DateTime.Now.AddDays(365), true, 0);

            set.AddPhoto(new Bitmap(128, 128), set.Protocols[0].IdProtocol);
            Assert.AreEqual(1, set.Protocols.Count);

            NewVipAvtoSet.ProtocolsRow[] prot = set.GetProtocolsBetweenDates(DateTime.Now.AddDays(-2), DateTime.Now);
            Assert.AreEqual(1, set.Protocols.Count);

            Assert.AreEqual(set.Protocols[0].IdProtocol, set.GetProtocolByBlankId("4324342").IdProtocol);
            Assert.IsNull(set.GetProtocolByBlankId("dsfsddsf"));
            Assert.IsTrue(set.UniqProtocolNumber("432435353"));
            Assert.IsFalse(set.UniqProtocolNumber("4324342"));
        }