Hi, i'm having trouble writing integration tests which use a fake repository,
For example : Suppose I have a classroom entity, which aggregates students...
var classroom = new Classroom();
classroom.Students.Add(new Student("Adam"));
_fakeRepository.Save(classroom);
_fakeRepostiory.GetAll<Student>().Where((student) => student.Name ==...
Assume that somewhere in the web exists public git repository. I want to clone it but firstly i need to be sure what is size of it (how much objects & kbytes like in git count-objects)
Is there a way to do it?
...
Hi all,
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service layer that are used by controllers of my application. Everything are using Unity to inject dependencies (ISessionFactory in repositories, repositories in services and services in controllers) and works fine.
But, it's very common I need a met...
I'm assuming Mercurial is for having an updated website and it archiving the old stuff? Easy to test things and such?
My question is, how exactly should I get started and can somebody give me a crash course in using Mercurial and using the following techs below:
Notepad++ for coding
FTP
PHP/MySQL
Jquery & other js libraries
I use win...
Hi,
I have an Ubuntu Server and wanted to install subversion and set up some repositories. I used the guide at https://help.ubuntu.com/community/Subversion to setup a local repository.
When I walk into the directory I'll find a README-file, which contains the following:
This is a Subversion repository; use the 'svnadmin' tool to exami...
I'm working on an event-sourced CQRS implementation, using DDD in the application / domain layer. I have an object model that looks like this:
public class Person : AggregateRootBase
{
private Guid? _bookingId;
public Person(Identification identification)
{
Apply(new PersonCreatedEvent(identification));
}
...
I am starting a new project that needs to connect to a repository that offers JCR and CMIS APIs.
The project is in Java and both APIs offer every operation we need.
What API would you chose and why? JCR or CMIS?
...
Hey all!
Just curious what your naming conventions are for the following:
Repository name
Branches
Tags
Right now, we're employing the following standards with SVN, but would like to improve on it:
Each project has its own repository
Each repository has a set of directories: tags, branches, trunk
Tags are immutable copies of the the...
Hi, I'm working in an ASP.NET MVC project where I have created a two LinqToSQL classes. I have also created a repository class for the models and I've implemented some methods like LIST, ADD, SAVE in that class which serves the controller with data. Now in one of the repository classes I have pulled some data with LINQ joins like this.
...
This is more of an opinion seeking question, so there may not be a "right" answer, but I would welcome arguments as to why your answer is the "right" one.
Given an MVC application that is using Entity Framework for the persistence engine, a repository layer, a service layer that basically defers to the repository, and a delete method on...
I'd like to migrate my svn repository from my local computer running windows and VisualSVN 2.1.2 to an svn app on webfaction (my Linux hosting solution).
Initially I tried dumping the svn:
svnadmin dump *path_to_repository* > *dumpfile_name*
and loading it on the Linux machine
svnadmin load *dumpfile_name*
I received the fol...
Hello,
as you can see in the image I attached here:
http://img202.imageshack.us/img202/6497/subversion.png
the button to browse the DIR to set the repository directory is grayed out, but why?
...
I have a base repository class which contains all the common repository methods (as generic):
public abstract class BaseRepository<T, IdType> : IBaseRepository<T, IdType>
My repositories from this base e.g.:
public class UserRepository : BaseRepository<User, int>, IUserRepository
I also have a base controller class containing comm...
I use Subversion mainly to synchronize work between two computers I use on a daily basis (and as a backup, since I have a checked-out copy of the repository on each computer). I keep the main repository on a USB flashdrive.
I recently came across the following error when trying to commit a current working copy (and both working copies,...
Hi everybody,
I have spent some months working on a web application and we're come close to production stage. It's soon time to expand the development group with 1-3 people on this project.
I have not too much experience on working with SVN, but It's obviously the choice for a big part of the larger companies out there, so I am guessin...
Hi,
I am trying to get myself accustomed with TDD, DI and Pattern-based Development. I am by far not new to Application Development, but since I plan to start a (big) new Project in a few months I want to be prepared and do it right from the start ;).
The current architecture is based on a WCF-based AppServer, a MS SQL Database and WPF/...
Hi,
I have a pretty generic repository that does basic CRUD for many of my business entities.
The entities enherit form a generic object that has a few fields I maintain for all objects.
eg. ModifiedBy, CreatedBy, CreatedDate, ModifiedDate.
These fields ModifiedBy and CreatedBy will always be set before any update/save.
My questions is...
If I have a Domain Model that has an ID that maps to a SQL Server identity column, what does the POCO look like that contains that field?
Candidate 1: Allows anyone to set and get the ID. I don't think we want anyone setting the ID except the Repository, from the SQL table.
public class Thing {
public int ID {get;set;}
}
Candida...
I am starting on a new Hadoop project that will have multiple hadoop jobs(and hence multiple jar files). Using mercurial for source control, I was wondering what would be optimal way of organizing the repository structure? Should each job live in separate repo or would it be more efficient to keep them in the same, but break down into fo...
Hi,
When creating a branch, what are the implications of selecting the following?
Create copy in the repository from:
HEAD revision in the repository
Specific revision the repository
Working copy
...