public void SubmitRequest_SendEmail_WithSuccess()
        {
            MockConnectorResolver    connectorResolver = new MockConnectorResolver();
            UnsubmitedHolidayRequest holidayRequest    = new UnsubmitedHolidayRequest(connectorResolver);

            holidayRequest.SubmitRequest();

            Assert.IsTrue(connectorResolver.MockConnector.SendMethodWasCalled);
        }
Esempio n. 2
0
        private static void RequestHoliday()
        {
            UnsubmitedHolidayRequest holidayRequest = new UnsubmitedHolidayRequest(connectorResolver);

            holidayRequest.EmployeeEmail = "*****@*****.**";
            holidayRequest.EmployeeName  = "Jack Daniels";
            holidayRequest.From          = DateTime.UtcNow.AddDays(1);
            holidayRequest.To            = DateTime.UtcNow.AddDays(20);

            System.Console.WriteLine("Employee: New request was send");
            holidayRequest.SubmitRequest();
        }