public void ShouldUpdateGenderType() { // Arrange GenderTypeRepository repository = new GenderTypeRepository(ConfigSettings.MySqlDatabaseConnectionName); GenderTypeEntity entity = GenderTypeData.GetItemForInsert(); repository.ClearCollection(); entity = repository.Create(entity); entity.Description = "Male"; // Act GenderTypeEntity actual = repository.Update(entity); // Assert Assert.AreEqual(entity.Description, actual.Description); }