public Assembly GetAssemblyOfFactory(IAnalogyFactory factory) { if (BuiltInFactories.Exists(f => f.Factory == factory)) { return(BuiltInFactories.First(f => f.Factory == factory).Assembly); } return(Factories.Single(f => f.Factory == factory).Assembly); }
public bool IsBuiltInFactory(Guid factoryId) => BuiltInFactories.Exists(fc => fc.Factory.FactoryId == factoryId);
public Assembly GetAssemblyOfFactory(IAnalogyFactory factory) => BuiltInFactories.Exists(f => f.Factory == factory) ? BuiltInFactories.First(f => f.Factory == factory).Assembly : Factories.Single(f => f.Factory == factory).Assembly;