public void CustomerConverter_ReturnsCustomerModel_WhenConvert() { var customerConverter = new CustomerConverter(); var result = customerConverter.Convert(new object[] { _firstName, _lastName, _email, _rating, _regionId }, typeof(object), null, new System.Globalization.CultureInfo("en-us")); Assert.IsInstanceOf<CustomerModel>(result); Assert.AreEqual(_firstName, (result as CustomerModel).FirstName); Assert.AreEqual(_lastName, (result as CustomerModel).LastName); Assert.AreEqual(_email, (result as CustomerModel).Email); Assert.AreEqual(_rating, (result as CustomerModel).Rating); Assert.AreEqual(_regionId, (result as CustomerModel).RegionId); }
public void CustomerConverter_ThrowsNotImplementedException_WhenConvertBack() { var customerConverter = new CustomerConverter(); var result = customerConverter.ConvertBack(null, null, null, new System.Globalization.CultureInfo("en-us")); }