public void BuildContentStep_ForBody()
        {
            var contentStep = new MessageBuilder.BuildContentStep(MailerMessage.Create());
            var stepBuilder = contentStep.ForBody();

            stepBuilder
            .Should()
            .NotBeNull()
            .And.BeOfType <MessageBuilder.BuildContentStep.BuildBodyStep>();
        }
        public void BuildContentStep_ForTemplate(string templateName)
        {
            var contentStep = new MessageBuilder.BuildContentStep(MailerMessage.Create());
            var stepBuilder = contentStep.ForTemplate(templateName);

            stepBuilder
            .Should()
            .NotBeNull()
            .And.BeOfType <MessageBuilder.BuildContentStep.BuildContentTemplateStep>()
            .Which.As <IBuilderContext>()
            .Message.Body.As <TemplateBody>()
            .TemplateName
            .Should()
            .Be(templateName);
        }
        public void BuildContentStep_To(string address)
        {
            var contentStep = new MessageBuilder.BuildContentStep(MailerMessage.Create());
            var stepBuilder = contentStep.To(address);

            stepBuilder
            .Should()
            .NotBeNull()
            .And.BeOfType <MessageBuilder.BuildRecipientsStep.BuildToStep>()
            .Which.As <IBuilderContext>()
            .Message.Recipients
            .Should()
            .NotBeNull()
            .And.NotBeEmpty()
            .And.AllBeAssignableTo <MessageRecipient>()
            .And.Contain(r => r.EmailAddress == address);
        }