public void Delete_LeaseExists_LeaseDeleted(
     IConcurrencyControlRepository<ElasticLease> repo,
     ElasticLease lease,
     ISystemContext ctx,
     TestIndexUtils contactIndex)
 {
     using (contactIndex)
     {
         repo.Create(lease, ctx);
         repo.Delete(lease.ResourceId, ctx);
         repo.Get(lease.ResourceId, ctx).Should().BeNull();
     }
 }
 public void Get_NoLeaseExists_NoLeaseIsReturned(
     IConcurrencyControlRepository<ElasticLease> repo,
     ISystemContext ctx,
     TestIndexUtils contactIndex)
 {
     using (contactIndex)
     {
         var actual = repo.Get(new Guid(), ctx);
         actual.Should().BeNull();
     }
 }
 public void Get_LeaseAlreadyExists_LeaseIsReturned(
     IConcurrencyControlRepository<ElasticLease> repo,
     ElasticLease lease,
     ISystemContext ctx,
     TestIndexUtils contactIndex)
 {
     using (contactIndex)
     {
         repo.Create(lease, ctx);
         var actual = repo.Get(lease.ResourceId, ctx);
         actual.Should().NotBeNull();
         actual.ShouldBeEquivalentTo(lease);
     }
 }