public void Setup()
        {
            operation = new Operation(OperationAction.SendEmail);
            operation.EmailAddress = "*****@*****.**";
            operation.Message = "test message";

            emailHandler = new EmailHandler(operation);
        }
Пример #2
0
        public void should_return_true_for_show_usages_method()
        {
            operation = new Operation(OperationAction.ShowUsages);

            Assert.That(operation.ShouldShowUsages, Is.True);
        }
Пример #3
0
 /// <summary>
 /// This is a constructor. Duh
 /// </summary>
 /// <param name="operation">Object representation of command-line arguments</param>
 public EmailHandler(Operation operation)
 {
     this.operation = operation;
 }