public When_I_call_address_formatter()
        {
            // Setup
               address = new AddressBuilder()
                .WithA1("123 Fake Street")
                .WithA2("Fake2")
                .WithA3("Fake3")
                .WithCity("Fakecity")
                .WithPostCode("F1 23FF")
                .Build();

            person = new PersonBuilder()
                .WithTitle("Mr")
                .WithFirstName("Liam")
                .WithLastName("Woods")
                .WithAddress(address)
                .Build();

            personFormatter = Substitute.For<IPersonFormatter>();
            personFormatter.PersonToString(person).Returns("Mr Liam Woods");

            addressFormatter = new AddressFormatter(personFormatter);

            // Act
            actual = addressFormatter.AddressToString(person);
        }
        public When_I_call_greeting_formatter()
        {
            person = new PersonBuilder()
                .WithTitle("Mr")
                .WithFirstName("Liam")
                .WithLastName("Woods")
                .Build();

            personFormatter = Substitute.For<IPersonFormatter>();
            personFormatter.PersonToString(person).Returns("Mr Liam Woods");

            greetingFormatter = new GreetingFormatter(personFormatter);

            // Act
            actual = greetingFormatter.PersonToGreeting(person);
        }
        public When_I_convert_a_document_to_string()
        {
            // Arrangement
            document = new Fixture().Create<MergedDocument>();
            document.Document.TokenizedDocument = "<<x>> <<y>> World";
            document.Document.GreetingToken = "<<x>>";
            document.Document.AdressToken = "<<y>>";

            personFormatter = Substitute.For<IPersonFormatter>();
            personFormatter.PersonToString(document.Person).Returns("Hello");

            addressFormatter = Substitute.For<IAddressFormatter>();
            addressFormatter.AddressToString(document.Person.Address).Returns("Wide");

            sut = new DocumentFormatter(addressFormatter, personFormatter);

            // Act
            actual = sut.DocumentToString(document);
        }