public LoaderService(MoreInfoRequestXmlSerializer moreInfoRequestXmlSerializer)
 {
     if (moreInfoRequestXmlSerializer == null)
     {
         throw new ArgumentNullException(nameof(moreInfoRequestXmlSerializer));
     }
     _moreInfoRequestXmlSerializer = moreInfoRequestXmlSerializer;
 }
예제 #2
0
        public void GetXml_ShouldReturnCorrectResult(int id, Guid guid, MoreInfoRequestXmlSerializer sut)
        {
            // act..
            var actual = sut.GetXml(id, guid);

            // assert..
            const string format = @"<MoreInfoRequest>
  <GUID>{0}</GUID>
  <ID>{1}</ID>
</MoreInfoRequest>";

            var expected = string.Format(format, guid, id);

            actual.ShouldBe(expected);
        }