public void get_message_with_substitutions() { var message = new NotificationMessage(NotificationMessageKeys.SUBSTITUTE_NAME_AND_AGE) .AddSubstitution("Name", "Max") .AddSubstitution("Age", "7"); message.GetMessage().ShouldEqual("Max is 7 years old"); }
public void get_message_without_subsitutions() { var message = new NotificationMessage(NotificationMessageKeys.NO_SUBSTITUTION); message.GetMessage().ShouldEqual(NotificationMessageKeys.NO_SUBSTITUTION.ToString()); }
public void create_by_string() { var message = new NotificationMessage("Some message"); message.GetMessage().ShouldBe("Some message"); }