Пример #1
0
        public virtual Response Process(SessionActivity sessionActivity)
        {
            var policyMiner = _businessServiceFactory.CreatePolicyMiner();
            var policy      = policyMiner.Mine(sessionActivity);

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

            var policySender  = _businessServiceFactory.SenderFactory.CreatePolicySender();
            var responseModel = policySender.Send(policyModel);

            var responseMapper = _businessServiceFactory.CreateResponseMapper();
            var response       = responseMapper.Map(responseModel);

            return(response);
        }
        public void CreateResponseMapper()
        {
            var result = _businessServiceFactory.CreateResponseMapper();

            Assert.IsInstanceOfType(result, typeof(ResponseMappers));
        }