public void ShouldInsertAddressAsWellAsContactUsingSaveToDatabase()
        {
            var employee = new MicroOrmComparison.UI.Models.Employee
            {
                FirstName = "Quality",
                LastName = "Assurance",
                Email = "*****@*****.**",
                DepartmentId = 5,
            };

            var address = new MicroOrmComparison.UI.Models.Address
            {
                StreetAddress = "1 Infinite Loop",
                StateId = 5,
                City = "Cupertino",
                ZipCode = "95014"
            };
            employee.Addresses.Add(address);

            //Act
            _employeeRepository.Save(employee);

            //Assert
            employee.Id.Should().NotBe(0, "Identity should be assigned by the database");
            employee.Addresses.Count().Should().NotBe(0);
            employee.Addresses[0].StreetAddress.Should().Be("1 Infinite Loop");
        }
        private int InsertUserToBeModified()
        {
            var employee = new MicroOrmComparison.UI.Models.Employee
            {
                FirstName = "Modify",
                LastName = "Test",
                Email = "*****@*****.**",
                DepartmentId = 5,
            };

            var address = new MicroOrmComparison.UI.Models.Address
            {
                StreetAddress = "1 Infinite Loop",
                StateId = 5,
                City = "Cupertino",
                ZipCode = "95014"
            };
            employee.Addresses.Add(address);

            //Act
            _employeeRepository.Save(employee);

            //Assert
            employee.Id.Should().NotBe(0, "Identity should be assigned by the database");
            employee.Addresses.Count().Should().NotBe(0);
            employee.Addresses[0].StreetAddress.Should().Be("1 Infinite Loop");

            return employee.Id;
        }