public void GetJsonTypeDescriptionTests() { var obj1 = int.MaxValue; Debug.WriteLine("obj1 - " + obj1.GetJsonTypeDescription()); var obj2 = new DateTime(2000, 12, 31); Debug.WriteLine("obj2 - " + obj2.GetJsonTypeDescription()); var obj3 = new ReferenceDataItem { Code = "xyz", Description = "123" }; Debug.WriteLine("obj3 - " + obj3.GetJsonTypeDescription()); IEnumerable <IReferenceDataSource> obj4 = new List <IReferenceDataSource> { new SqlReferenceDataSource(), //new XmlReferenceDataSource() }; Debug.WriteLine("obj4 - " + obj4.GetJsonTypeDescription()); }
public void GetJsonTypeDescriptionTests() { var obj1 = int.MaxValue; Debug.WriteLine($"obj1 - {obj1.GetJsonTypeDescription()}"); var obj2 = new DateTime(2015, 12, 31); Debug.WriteLine($"obj2 - {obj2.GetJsonTypeDescription()}"); var obj3 = new ReferenceDataItem { Code = "A", Description = "This is a description" }; Debug.WriteLine($"obj3 - {obj3.GetJsonTypeDescription()}"); var obj4 = new List <ReferenceDataItem> { new ReferenceDataItem { Code = "A", Description = "This is a description 1" }, new ReferenceDataItem { Code = "B", Description = "This is a description 2" } }; Debug.WriteLine($"obj4 - {obj4.GetJsonTypeDescription()}"); }
public void GetJsonTypeDescription_ReferenceDataItem() { //-- Arrange ReferenceDataItem obj = new ReferenceDataItem { Code = "abc", Description = "Alpha Bravo Charlie" }; //-- Act Debug.WriteLine("obj - " + obj.GetJsonTypeDescription()); //-- Assert }