public void InsertUserWithoutCodRefTest() { this.client.Delete(92); User userToInsert = new User { UserCode = 92, UserName = "******", InputDate = DateTime.Now, PasswordMd5 = MD5Hash.CalculateMD5Hash("anything-else"), Status = StatusUser.Guest, }; this.client.Delete(userToInsert.UserCode); // Avoid Duplicates Assert.True(this.client.Insert(userToInsert)); User insertedUser = this.client.FindByCode(userToInsert.UserCode); Assert.NotNull(insertedUser); AssertExt.UsersTheSame(insertedUser, userToInsert); Assert.True(this.client.Delete(insertedUser.UserCode)); }