Questions tagged [common-library]

9 questions
3
votes
2 answers

Fake Captcha from commonlibnet with FakeItEasy and FluentValidation

I am using the Captcha class from commonlibrary (http://commonlibrarynet.codeplex.com/). My code works and everything but now I'm trying to write the unit test. My validation rule is: RuleFor(x => x.CaptchaUserInput) .NotEmpty() …
DavidS
  • 2,179
  • 4
  • 26
  • 44
2
votes
1 answer

Should external dependencies be fixed, during development?

My team and I are working on several projects that collectively depend on some common libraries. These common libraries are currently checked out together with the projects, using svn:externals. The question is, should the projects' trunks track the…
Andres Jaan Tack
  • 22,566
  • 11
  • 59
  • 78
1
vote
1 answer

Library project and resources

I have developed an Android library project that contains all the common code and resources need to 2 other projects. The problem is that in a class of common library I need to load a different resource if it is used on project A or project B,…
0
votes
0 answers

Split common library into individual libraries in monorepo (nx)

In the past four months, we have successfully transitioned to using nx as our development framework. During this time, we have heavily relied on a shared library. However, our current objective is to break down this library into several smaller…
0
votes
1 answer

How to pass function as callback function in node

I have created following function in common library created in node to create route. public registerRoute(verb:string,route:string,cb:(req:any,resp:any)=>any):any { this.app.get(route,cb); } I am importing this library and calling this…
Yashwant
  • 25
  • 1
  • 5
0
votes
1 answer

WCF - Common library enum issue - C#

I've got a common library that contains enums that are shared between a WCF Service and a client by means of the DLL. Yes, I know the better way of doing this is to create a service out of my common lib - that's for later. I've made a change to my…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
1 answer

Common Library and the System.Configuration namespace

Here is the setup: We have a common library that I've developed that is used by all developers on any new applications or more than trivial changes to old applications. When we make a change, we up the minor version number (2.0 to 2.1)…
Max Schmeling
  • 12,363
  • 14
  • 66
  • 109
0
votes
5 answers

How to verify an application is the application it says it is?

Here's the situation: we have a common library which can retrieve database connection details from a central configuration store that we have setup. Each application uses this library when working with a database. Basically, it will call a stored…
Max Schmeling
  • 12,363
  • 14
  • 66
  • 109
-1
votes
4 answers

Best practice for getting app name/id

What's the best way for a common library to know what context - a.k.a. the calling app - it is in? I'm in a very controlled enterprise environment... is there a better way for the library to know what application it is getting called from than…
Max Schmeling
  • 12,363
  • 14
  • 66
  • 109