public void IdentifyTenant_FailedRetrieval()
 {
     var strategy = new StubTenantIdentificationStrategy
     {
         IdentificationSuccess = false
     };
     Assert.AreEqual(Guid.Empty, strategy.IdentifyTenant<Guid>(), "The tenant ID should be the default for the type if identification fails.");
 }
 public void IdentifyTenant_FailedConversion()
 {
     var strategy = new StubTenantIdentificationStrategy
     {
         TenantId = Guid.NewGuid()
     };
     Assert.Throws<InvalidCastException>(() => strategy.IdentifyTenant<int>());
 }
 public void IdentifyTenant_SuccessfulRetrieval()
 {
     var expected = Guid.NewGuid();
     var strategy = new StubTenantIdentificationStrategy
     {
         TenantId = expected
     };
     Assert.AreEqual(expected, strategy.IdentifyTenant<Guid>(), "The tenant ID wasn't properly retrieved and parsed.");
 }