package com.cp.pranker.handlers;

import com.cp.pranker.utils.dtos.PhoneNumber;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertTrue;

/**
 * Created by Jordon on 2/15/2016.
 */
public class CallMessageHandlerTest {

    private CallMessageHandler callMessageHandler;

    @Before
    public void setUp() {
        callMessageHandler = new CallMessageHandler();
    }

    @Test
    public void callRecipientShouldReturnTrue() {
        PhoneNumber fromPhoneNumber = new PhoneNumber("18327421213");
        PhoneNumber toPhoneNumber = new PhoneNumber("2146360828");
        String message = "Good Afternoon Richardo. Are you from Brazil? Would you like to save 20% on Baby Lama meat? Just stay on the line for 20 minutes or more. And you too can get some baby lama meat!";
        boolean called = callMessageHandler.callRecipient(fromPhoneNumber, toPhoneNumber, message);
        assertTrue(called);
    }
}
