/*
 * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
 *
 */

package scot.carricksoftware.grants.domains.certificates.marriage;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import scot.carricksoftware.grants.domains.certificates.MarriageCertificate;
import scot.carricksoftware.grants.domains.places.Place;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static scot.carricksoftware.grants.GenerateRandomPlaceValues.GetRandomPlace;


class MarriageCertificatePlaceTest {

    private MarriageCertificate marriageCertificate;
    private Place place;

    @BeforeEach
    void setUp() {
        marriageCertificate = new MarriageCertificate();
        place = GetRandomPlace();
    }

    @Test
    void getWhereMarriedTest() {
        assertNull(marriageCertificate.getWhereMarried());
    }

    @Test
    void setWhereMarriedTest() {
        marriageCertificate.setWhereMarried(place);
        assertEquals(place, marriageCertificate.getWhereMarried());
    }

    @Test
    void getGroomUsualResidenceTest() {
        assertNull(marriageCertificate.getGroomUsualResidence());
    }

    @Test
    void setGroomUsualResidenceTest() {
        marriageCertificate.setGroomUsualResidence(place);
        assertEquals(place, marriageCertificate.getGroomUsualResidence());
    }

    @Test
    void getBrideUsualResidenceTest() {
        assertNull(marriageCertificate.getBrideUsualResidence());
    }

    @Test
    void setBrideUsualResidenceTest() {
        marriageCertificate.setBrideUsualResidence(place);
        assertEquals(place, marriageCertificate.getBrideUsualResidence());
    }


}