public void GpraNonResponseTypeObject_Map_Succeed() { GpraNonResponseType <bool?> source = new GpraNonResponseType <bool?>(); GpraNonResponseTypeDto <bool?> dest = Mapper.Map <GpraNonResponseTypeDto <bool?> >(source); Assert.IsNotNull(dest); }
/// <summary> /// Equalses the name of the well known. /// </summary> /// <typeparam name="T">The type of the non-response.</typeparam> /// <param name="gpraNonResponseTypeDto">The gpra non response type dto.</param> /// <param name="wellKnownName">Name of the well known.</param> /// <returns>A <see cref="System.Boolean"/></returns> public static bool EqualsWellKnownName <T> (this GpraNonResponseTypeDto <T> gpraNonResponseTypeDto, string wellKnownName) where T : LookupValueDto { if (gpraNonResponseTypeDto.HasValue()) { return(string.Compare(gpraNonResponseTypeDto.Value.WellKnownName, wellKnownName) == 0); } return(false); }