Пример #1
0
        public void Test_Subscriber_Translator_DataContractToModel()
        {
            ServiceLayer.DataContract.Subscriber contract_Subscriber = new ServiceLayer.DataContract.Subscriber();
            Model.Subscriber model_Subscriber = new Model.Subscriber();
            var result = ServiceLayer.Translators.SubscriberTranslator.DataContractToModel(contract_Subscriber);

            Assert.IsInstanceOfType(model_Subscriber, result.GetType());
        }
Пример #2
0
 public void Fail_Test_Subscrier_without_Translator_DataContractToModel()
 {
     ServiceLayer.DataContract.Subscriber contract_Subscriber = new ServiceLayer.DataContract.Subscriber();
     Model.Subscriber model_Subscriber = new Model.Subscriber();
     Assert.IsNotInstanceOfType(contract_Subscriber, model_Subscriber.GetType());
 }