public void Save_ValidatorForEntityNotSpecified_ShouldProceedDirectlyToDbOperation()
        {
            //Arrange
            var characteristic = new NumericCharacteristic("some name", ComponentType.PowerSupply);

            //Act
            _context.Characteristics.Add(characteristic);
            _context.SaveChanges();

            Assert.That(_context.Characteristics.ToList().Count == 1);
        }
        public void CreateValue_AnyArg_ShouldReturnNewCharacteristicValueWithSpecifiedValue(decimal valueArg)
        {
            //Arrange
            var characteristic = new NumericCharacteristic("some name", ComponentType.HardDiskDrive).WithId(Guid.NewGuid());
            var value          = characteristic.CreateValue(valueArg);

            //Assert
            Assert.That(value, Is.Not.Null);
            Assert.That(value.Value, Is.EqualTo(valueArg));
            Assert.That(value.Characteristic.SameIdentityAs(characteristic));
            Assert.That(value.CharacteristicId, Is.EqualTo(characteristic.Id));
        }