Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
C# Shell
Branch: master
Failed to load latest commit information.
SC.YesMail initial
SC.YesmailAdapter._Test more readibility refactors
SC.YesmailAdapter more readibility refactors
Samples reorg
packages
.gitignore Import status.xsd
README
YesMail.1.1.dotCover initial
YesMail.sln update solution file

README

If you are having difficulty with auth, try cleaning and recompile.

USAGE
-----
    
 // Arrange
 var emailService = new YesmailService();
 var messageId = 1256210;
 var dto = GetAnyDto()


 // Act
 var statusType = emailService.SendEmail(dto, messageId);


 // Assert
 Assert.That(statusType.statusCode, Is.EqualTo(StatusCode.SUBMITTED), "StatusCode");



SAMPLE DTO
----------

This can be any OBJECT in your library.  

Just use the DECORATOR PATTERN and add ATTRIBUTES to your PROPERTIES to map:

a. subscriber - key/value pair
b. sidetable - key/value pair

 public class TestMessageDto 
 {
    [SubscriberTolken, SideTableTolken]
    public string Email { get; set; }

    
    [SideTableTolken]
    public string Generic1 { get; set; }

    [SideTableTolken]
    public string Generic2 { get; set; }
    
    [SideTableTolken]
    public string Generic3 { get; set; }
    
    [SideTableTolken]
    public string Name1 { get; set; }
    
    [SideTableTolken]
    public string Url1 { get; set; }
    
    [SideTableTolken]
    public string Url2 { get; set; }
 }
Something went wrong with that request. Please try again.