public void GetAgencyByKeyRequest_GivenValidKey_ReturnsAgencyDto()
        {
            Session.Clear ();
            var handler = new GetAgencyByKeyRequestHandler { SessionProvider = SessionProvider };

            // When you do Agatha Request Handler testing, always declare the request as the base class type Agatha.Common.Request
            Request request = new GetAgencyByKeyRequest { Key = SafeHarborAgency.Key };

            Response response = handler.Handle(request);
            var agencyResponse = response as GetAgencyByKeyResponse;
            AgencyDto agencyDto = agencyResponse.AgencyDto;

            Assert.AreEqual ( 1, agencyDto.AddressesAndPhones.AddressesAndPhones.Count );
        }
        public void GetAgencyByKeyRequest_GivenValidKey_ReturnsAgencyDto()
        {
            Session.Clear();
            var handler = new GetAgencyByKeyRequestHandler {
                SessionProvider = SessionProvider
            };

            // When you do Agatha Request Handler testing, always declare the request as the base class type Agatha.Common.Request
            Request request = new GetAgencyByKeyRequest {
                Key = SafeHarborAgency.Key
            };

            Response  response       = handler.Handle(request);
            var       agencyResponse = response as GetAgencyByKeyResponse;
            AgencyDto agencyDto      = agencyResponse.AgencyDto;

            Assert.AreEqual(1, agencyDto.AddressesAndPhones.AddressesAndPhones.Count);
        }