public void Setup()
 {
     _mockClaimDal = new Mock<IMitchellClaimDAL>();
     _mockClaimDal.Setup(x => x.GetClaims()).Returns(new List<MitchellClaimType>() { new MitchellClaimType(){ID = 1234, Status = StatusCode.OPEN}});
     _mockClaimDal.Setup(x => x.SaveClaim(It.IsAny<MitchellClaimType>())).Returns(1234);
     _sut = new MitchellClaimService(_mockClaimDal.Object);
 }
        public void SetUp()
        {
            _dal = new MitchellClaimDAL();
            _claimService = new MitchellClaimService(_dal);

            _claimType = new MitchellClaimType()
            {
                ClaimNumber = "22c9c23bac142856018ce14a26b6c299",
                ClaimantFirstName = "George",
                ClaimantLastName = "Washington",
                Status = (StatusCode)Enum.Parse(typeof(StatusCode), "OPEN"),
                LossDate = Convert.ToDateTime("2014-07-09T17:19:13.631-07:00"),
                AssignedAdjusterID = Convert.ToInt64("12345"),
                LossInfo = new LossInfoType()
                {
                    CauseOfLoss = (CauseOfLossCode)Enum.Parse(typeof(CauseOfLossCode), "Collision"),
                    ReportedDate = Convert.ToDateTime("2014-07-10T17:19:13.676-07:00"),
                    LossDescription = "Crashed into an apple tree."
                },
                Vehicles = new VehicleInfoType[1]{
                    new VehicleInfoType(){
                            Vin = "1M8GDM9AXKP042788",
                            ModelYear = Convert.ToInt32("2015"),
                            MakeDescription = "Ford",
                            ModelDescription = "Mustang",
                            EngineDescription = "EcoBoost",
                            ExteriorColor = "Deep Impact Blue",
                            LicPlate = "NO1PRES",
                            LicPlateState = "VA",
                            LicPlateExpDate = Convert.ToDateTime("2015-03-10-07:00"),
                            DamageDescription = "Front end smashed in. Apple dents in roof.",
                            Mileage = Convert.ToInt32("1776")
                    }
                },
            };
        }
 public MitchellClaimController(IMitchellClaimService mitchellClaimService)
 {
     _mitchellClaimService = mitchellClaimService;
 }