public void SubmitRequest_SendEmail_WithSuccess() { MockConnectorResolver connectorResolver = new MockConnectorResolver(); UnsubmitedHolidayRequest holidayRequest = new UnsubmitedHolidayRequest(connectorResolver); holidayRequest.SubmitRequest(); Assert.IsTrue(connectorResolver.MockConnector.SendMethodWasCalled); }
public void Reject_SendEmail_WithSuccess() { Email originalEmail = CreateSampleEmail(); MockConnectorResolver connectorResolver = new MockConnectorResolver(); NewEmployeeHolidayRequest request = new NewEmployeeHolidayRequest(originalEmail, connectorResolver); request.Reject(); Assert.IsTrue(connectorResolver.MockConnector.SendMethodWasCalled); }