For some reason, testing this method GetById causes problems. I hope for your help. (C #)
public class ProductTypes: Archetypes<ProductType> { public static ProductTypes Instance { get; } = new ProductTypes(); public static ProductType GetById(string uniqueId) { return Instance.Find(x=> x.IsThisUniqueId(uniqueId)); } public static ProductTypes GetInherited(string uniqueId) { var t = new ProductTypes(); var l = Instance.FindAll(x => x.TypeId == uniqueId); t.AddRange(l); return t; } }
Instance.Find(...).Archetypes<T>is completely covered with tests? do they pass? - rdorn