public async Task Will_Set_CurrentVersion_For_template()
        {
            var templateId        = _templates[0].TemplateId;
            var templateVersionId = _templates[0].Versions[1].TemplateVersionId;

            _tenantIdProvider.Setup(x => x.TenantId).Returns(Tenant1Id).Verifiable();

            await _repository.SetCurrentVersion(templateId, templateVersionId, CancellationToken.None);

            var template = await _collection.Find(Builders <Template> .Filter.Eq(x => x.TemplateId, templateId)).FirstOrDefaultAsync();

            template.ActiveVersion.TemplateVersionId.Should().Be(templateVersionId);
            template.Versions.Where(x => x.IsActive).Select(x => x.TemplateVersionId).First().Should().Be(templateVersionId);
            template.Versions.Count(x => x.IsActive).Should().Be(1);

            _tenantIdProvider.Verify();
        }