public void Setup() { operation = new Operation(OperationAction.SendEmail); operation.EmailAddress = "*****@*****.**"; operation.Message = "test message"; emailHandler = new EmailHandler(operation); }
public void should_return_true_for_show_usages_method() { operation = new Operation(OperationAction.ShowUsages); Assert.That(operation.ShouldShowUsages, Is.True); }
/// <summary> /// This is a constructor. Duh /// </summary> /// <param name="operation">Object representation of command-line arguments</param> public EmailHandler(Operation operation) { this.operation = operation; }