public async Task Will_Count_Templates_By_TemplateKindKey_Without_Tenant_Context() { _tenantIdProvider.Setup(x => x.TenantId).Returns(Guid.NewGuid()).Verifiable(); var cnt = await _repository.CountTemplatesByTemplateKindKey("tk1"); cnt.Should().Be(_templates.Count(x => x.TemplateKindKey == "tk1")); _tenantIdProvider.Verify(x => x.TenantId, Times.Never); }