コード例 #1
0
		public void ShouldUpdateHourType()
		{
			// Arrange
			HourTypeRepository repository = new HourTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);
			HourTypeEntity entity = HoursData.GetHourTypeForInsert();
			repository.ClearCollection();
			entity = repository.Create(entity);
			entity.Description = "Unplanned";

			// Act
			HourTypeEntity actual = repository.Update(entity);

			// Assert
			Assert.AreEqual(entity.Description, actual.Description);
		}