public void InsertRecord_WithNullableGuidId_Succeed()
        {
            var customer = new GuidCustomer
            {
                Name = "John Doe",
            };

            _liteRepositoryFixture.Instance.Insert(customer);
        }
Ejemplo n.º 2
0
        public void InsertRecord_WithNullableGuidId_Succeed()
        {
            var customersCollection = _liteDatabaseFixture.Instance.GetCollection <GuidCustomer>();

            var customer = new GuidCustomer
            {
                Name = "John Doe",
            };

            customersCollection.Insert(customer);

            Assert.True(customersCollection.Exists(x => x.Id == customer.Id));
        }