Skip to content

Commit

Permalink
Added Caption property to KentorAuthServicesAuthenticationOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersAbel committed Jan 15, 2015
1 parent 4d0de88 commit 593f293
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,20 @@ public IdentityProviderDictionary IdentityProviders
return identityProviders;
}
}

/// <summary>
/// Passthrough property to Description.Caption.
/// </summary>
public string Caption
{
get
{
return Description.Caption;
}
set
{
Description.Caption = value;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,17 @@ public void KentorAuthServicesAuthenticationOptions_Ctor_LoadsFederationFromConf

a.ShouldNotThrow();
}

[TestMethod]
public void KentorAuthServicesAuthenticationOptions_Caption()
{
var subject = new KentorAuthServicesAuthenticationOptions(false)
{
Caption = "MyCaption"
};

subject.Caption.Should().Be("MyCaption");
subject.Description.Caption.Should().Be("MyCaption");
}
}
}

0 comments on commit 593f293

Please sign in to comment.