public void GenericTranslate()
        {
            MockTranslator translator = new MockTranslator(true);

            service.RegisterEntityTranslator(translator);
            Assert.AreSame(translator.ResultObject, service.Translate <object>(new object()));
        }
        public void ReturnsTranslatedObject()
        {
            MockTranslator translator = new MockTranslator(true);

            service.RegisterEntityTranslator(translator);
            Assert.AreSame(translator.ResultObject, service.Translate(typeof(object), new object()));
        }
        public void CannotTranslateWhenTranslatorIsRemoved()
        {
            MockTranslator translator = new MockTranslator(true);

            service.RegisterEntityTranslator(translator);
            service.RemoveEntityTranslator(translator);

            Assert.IsFalse(service.CanTranslate(typeof(object), typeof(object)));
        }
        public void DoesNotFailsWhenRemovingUnregisteredTranslator()
        {
            MockTranslator translator = new MockTranslator(true);

            service.RemoveEntityTranslator(translator);
        }