public void Test() { byte[] bytes = VersionControl.CreateFileBundle(this.list.First().History); var vc = new VersionControl(); List <FileEvent> receive = vc.AcceptFileBundle(bytes); }
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"); }
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"); }