public DoctorService(IOrchardServices orchardServices,
                      IRepository<Doctor> doctorRepository,
     IUnityClient unityClient) {
     _orchardServices = orchardServices;
     _doctorRepository = doctorRepository;
     _unityClient = unityClient;
 }
Пример #2
0
 /// <summary>
 /// Start the network connection to the server.
 /// Looks at -host and -port arguments to override
 /// the default network server location.
 /// </summary>
 /// <param name="client">The client that will start the connection</param>
 /// <param name="commandLineArgs">The current command line arguments</param>
 /// <exception cref="Exception"></exception>
 public static void Start(IUnityClient client, string[] commandLineArgs)
 {
     if (instance == null)
     {
         instance = new GameClient {
             client = client
         };
         ProcessCommandLineArguments(commandLineArgs);
     }
     else
     {
         throw new Exception(string.Format("{0} Can only be started once!",
                                           typeof(GameClient).FullName));
     }
 }
Пример #3
0
 public void Setup()
 {
     unityServer = Substitute.For <IUnityClient>();
 }