public void ShouldPopulateIdOnCreateLoanApplication()
        {
            var sut = new Repository();

            var appToSave = new LoanApplication()
            {
                LastName = "Mit",
                FirstName = "Philip",
                Age = 29,
                AnnualIncome = 1232312.22m
            };

            sut.Create(appToSave);

            Assert.That(appToSave.ID, Is.Not.EqualTo(0));
        }
Ejemplo n.º 2
0
		public void ShouldPopulateIdOnCreateLoanApplication()
		{
			var sut = new Repository();

			var applicationToSave = new LoanApplication
			{
				FirstName = "Gentry",
				LastName = "Smith",
				Age = 33,
				AnnualIncome = 12345.67m
			};

			sut.Create(applicationToSave);

			Assert.That(applicationToSave.ID, Is.Not.EqualTo(0));
		}