コード例 #1
0
        public void IsRepositoryAddsInsurance()
        {
            Insurance insuranceToInsert = new Insurance
            {
                Id          = 3,
                Name        = "Seguro test",
                Coverage    = 20,
                Description = "Póliza de Seguro TEST",
                Period      = 15,
                Price       = 1285000,
                Risk        = RiskEnum.MediumHigh,
                Type        = InsuranceTypeEnum.Fire,
                Validity    = DateTime.Now.AddMonths(4)
            };

            repository.Add(insuranceToInsert);
            var result = repository.FindById(3);

            Assert.AreEqual(result.Name, "Seguro test");
        }