Esempio n. 1
0
        public void RetrieveRateSwitchSolutionDetail()
        {
            var bindings = new DefaultBindings();
              var service = IntermediaryFactory.GetModellingService(bindings);
              var owner = new IntermediaryUserDto("Fred Jones", "fsa1234", Guid.NewGuid());
              var targetCase = new CaseDto(Guid.NewGuid(), owner);

              var solutionDetail = service.GetSolution(new Guid("2386D309-EAE1-47CD-BE03-1064E3CC5AE8"), targetCase);

              Assert.IsNotNull(solutionDetail, "Should have had a solution");
              Assert.IsNotNull(solutionDetail.Products, "Should have had some products returned");
              Assert.IsTrue(solutionDetail.Products.Count == 1, "Only one product on this solution");
              Assert.IsNotNull(solutionDetail.Requirement, "should have a requirement");
              Assert.IsInstanceOfType(solutionDetail.Requirement, typeof(MortgageRequirementDto), "Should be a mortgage requirement");
              Assert.AreEqual("122222", ((MortgageRequirementDto)solutionDetail.Requirement).AccountToSwitch, "Rate switch should be populated");
              return;
        }
Esempio n. 2
0
        public void RetrieveSolutionSummary()
        {
            var bindings = new DefaultBindings();
              var service = IntermediaryFactory.GetModellingService(bindings);

              var owner = new IntermediaryUserDto("Fred Jones", "fsa1234", Guid.NewGuid());
              var targetCase = new CaseDto(Guid.NewGuid(), owner);

              var summaries = service.ListSolutionsForCase(targetCase);

              Assert.IsNotNull(summaries, "Should have had some summaries back");
              Assert.IsTrue(summaries.Count > 0, "Should have had some summaries returned");

              return;
        }