Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (34 sloc) 1.124 kb
If you are having difficulty with auth, try cleaning and recompile.
// 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");
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; }
public string Generic1 { get; set; }
public string Generic2 { get; set; }
public string Generic3 { get; set; }
public string Name1 { get; set; }
public string Url1 { get; set; }
public string Url2 { get; set; }
Jump to Line
Something went wrong with that request. Please try again.