Example #1
0
        public int Create(Claim claim)
        {
            int response;

            response = claimRepository.Create(claim);

            return(response);
        }
        public void CreateClaimTest()
        {
            Claim claim    = BuildClaim();
            var   retValue = _repository.Create(claim);

            Assert.AreEqual(1, retValue);
            var claims = _repository.GetAll();

            Assert.IsTrue(claims.Count() == 2);
        }