Exemplo n.º 1
0
 public void Should_be_possible_to_create_CollectInfoDTO_from_RequestColect()
 {
     var session = this.GetSession();
     CollectRequest collectRequest = new CollectRequestFactory().CreateCollectRequest(session).Item2;
     CollectRequestAssembler assembler = new CollectRequestAssembler(dataProvider);
     CollectInfo collectInfo = assembler.CreateCollectInfoFromCollectRequest(collectRequest);
     Assert.IsNotNull(collectInfo);
     Assert.AreEqual(collectRequest.Oid.ToString(), collectInfo.CollectRequestId);
     Assert.AreEqual(collectRequest.Target.Address, collectInfo.Address);
     Assert.AreEqual(collectRequest.ReceivedOn, collectInfo.ReceivedOn);
 }