public void TestThatCreateCreatesTranslationInfoProxy()
        {
            ITranslationInfoProxy sut = CreateSut();

            Assert.That(sut, Is.Not.Null);

            Guid            translationInfoIdentifier = Guid.NewGuid();
            string          cultureName = CultureInfo.CurrentCulture.Name;
            MySqlDataReader dataReader  = CreateMySqlDataReader(translationInfoIdentifier, cultureName);

            ITranslationInfoProxy result = sut.Create(dataReader, CreateFoodWasteDataProvider(), "TranslationInfoIdentifier", "CultureName");

            Assert.That(result, Is.Not.Null);
            Assert.That(result.Identifier, Is.Not.Null);
            Assert.That(result.Identifier, Is.EqualTo(translationInfoIdentifier));
            Assert.That(result.CultureName, Is.Not.Null);
            Assert.That(result.CultureName, Is.Not.Empty);
            Assert.That(result.CultureName, Is.EqualTo(cultureName));
            Assert.That(result.CultureInfo, Is.Not.Null);
            Assert.That(result.CultureInfo.Name, Is.Not.Null);
            Assert.That(result.CultureInfo.Name, Is.Not.Empty);
            Assert.That(result.CultureInfo.Name, Is.EqualTo(cultureName));

            dataReader.AssertWasCalled(m => m.GetString("TranslationInfoIdentifier"), opt => opt.Repeat.Once());
            dataReader.AssertWasCalled(m => m.GetString("CultureName"), opt => opt.Repeat.Once());
        }
        public void TestThatCreateThrowsArgumentNullExceptionIfColumnNameCollectionIsNull()
        {
            ITranslationInfoProxy sut = CreateSut();

            Assert.That(sut, Is.Not.Null);

            ArgumentNullException result = Assert.Throws <ArgumentNullException>(() => sut.Create(CreateMySqlDataReader(), CreateFoodWasteDataProvider(), null));

            TestHelper.AssertArgumentNullExceptionIsValid(result, "columnNameCollection");
        }
        public void TestThatCreateThrowsArgumentNullExceptionIfDataProviderIsNull()
        {
            ITranslationInfoProxy sut = CreateSut();

            Assert.That(sut, Is.Not.Null);

            ArgumentNullException result = Assert.Throws <ArgumentNullException>(() => sut.Create(CreateMySqlDataReader(), null, _fixture.Create <string>(), _fixture.Create <string>()));

            TestHelper.AssertArgumentNullExceptionIsValid(result, "dataProvider");
        }