Пример #1
0
        public void RepoShouldAttachGuidOnAdd()
        {
            var newContact = new Contact
            {
                Id        = Guid.Empty,
                FirstName = "Foo",
                LastName  = "Bar"
            };

            var contact = _repo.AddOrUpdate(newContact);

            Assert.AreNotEqual(contact.Id, Guid.Empty);
        }