public ConfigurableBalloonMessageProvider(BalloonMessages balloonMessages)
 {
     messages.Add(BuildTransition.Broken, balloonMessages.BrokenBuildMessage);
     messages.Add(BuildTransition.Fixed, balloonMessages.FixedBuildMessage);
     messages.Add(BuildTransition.StillFailing, balloonMessages.StillFailingBuildMessage);
     messages.Add(BuildTransition.StillSuccessful, balloonMessages.StillSuccessfulBuildMessage);
 }
		public void ReturnsTheMessagesAndCaptionsDefinedInTheConfiguration()
		{
			BalloonMessages messages = new BalloonMessages();
			ConfigurableBalloonMessageProvider provider = new ConfigurableBalloonMessageProvider(messages);
			
			Assert.AreSame(messages.BrokenBuildMessage, provider.GetCaptionAndMessageForBuildTransition(BuildTransition.Broken));			
			Assert.AreSame(messages.FixedBuildMessage, provider.GetCaptionAndMessageForBuildTransition(BuildTransition.Fixed));			
			Assert.AreSame(messages.StillFailingBuildMessage, provider.GetCaptionAndMessageForBuildTransition(BuildTransition.StillFailing));			
			Assert.AreSame(messages.StillSuccessfulBuildMessage, provider.GetCaptionAndMessageForBuildTransition(BuildTransition.StillSuccessful));			
		}