Exemplo n.º 1
0
        public virtual Response Process(SessionActivity sessionActivity)
        {
            var miner  = _businessServicesFactory.CreatePolicyMiner();
            var policy = miner.Mine(sessionActivity);

            var policyMapper = _businessServicesFactory.CreatePolicyMapper();
            var policyModel  = policyMapper.Map(policy);

            var senderFactory = _businessServicesFactory.SenderFactory;

            var sender        = senderFactory.CreatePolicySender();
            var responseModel = sender.Send(policyModel);

            var responseMapper = _businessServicesFactory.CreateResponseMapper();

            return(responseMapper.Map(responseModel));
        }
Exemplo n.º 2
0
        public void CreatePolicyMapper()
        {
            var policyMapper = _businessServicesFactory.CreatePolicyMapper();

            Assert.IsInstanceOfType(policyMapper, typeof(PolicyMapper));
        }