コード例 #1
0
        public void Test()
        {
            byte[] bytes = VersionControl.CreateFileBundle(this.list.First().History);

            var vc = new VersionControl();

            List <FileEvent> receive = vc.AcceptFileBundle(bytes);
        }
コード例 #2
0
        public void CheckOutTest()
        {
            var vc = new VersionControl();

            byte[]           bytes   = VersionControl.CreateFileBundle(this.list.SelectMany(x => x.History).ToList());
            List <FileEvent> receive = vc.AcceptFileBundle(bytes);

            vc.CheckOut("2", "5");
        }
コード例 #3
0
        public void GetFileByNameTest()
        {
            var vc = new VersionControl();

            byte[]           bytes   = VersionControl.CreateFileBundle(this.list.SelectMany(x => x.History).ToList());
            List <FileEvent> receive = vc.AcceptFileBundle(bytes);

            vc.VersionList.GetFileByName("TT");
            vc.VersionList.GetFileById("2");
            vc.VersionList.RemoveFileByName("TT");
        }