public void Delete_PrimaryKeyPartiallyNotEntered_Throws()
 {
     // Act && Assert
     Assert.Throws <ArgumentException>(() => _repository.Delete(new CompositeUserPrimaryKeyEntity {
         Username = "******"
     }));
 }
        public void Insert_RelyOnDefaultConstraint_Valid(CompositeUserEntity entity)
        {
            // Act
            var insertedEntity = _repository.Insert(entity);

            // Assert
            try
            {
                Assert.Equal(entity.Username, insertedEntity.Username);
                Assert.Equal(entity.Password, insertedEntity.Password);
                Assert.True(insertedEntity.DateCreated > DateTime.UtcNow.AddHours(-1));
            }
            finally
            {
                _repository.Delete(entity);
            }
        }