Exemplo n.º 1
0
        protected override Task Because()
        {
            var rnd = new Random().Next(0, Repo.Branches["master"].Commits.Count());

            _pointer = Repo.Branches["master"].Commits.Skip(rnd).First().Sha;
            return(GitDb.CreateBranch(new Reference {
                Name = "test", Pointer = _pointer
            }));
        }
Exemplo n.º 2
0
 protected override Task Because() =>
 GitDb.CreateBranch(new Reference {
     Name = "test", Pointer = "master"
 });