private static UserService GetService() { IServiceLocator serviceLocator = new DummyServiceLocator(); IUserRepository userRepository = new UserRepository(serviceLocator); IUnitOfWork uow = new EfUnitOfWork<SampleDataContext>(serviceLocator); return new UserService(uow, userRepository); }
private static UserService GetService() { IServiceLocator serviceLocator = new DummyServiceLocator(); IUserRepository userRepository = new UserRepository(serviceLocator); IUnitOfWork uow = new EfUnitOfWork <SampleDataContext>(serviceLocator); return(new UserService(uow, userRepository)); }