/// <summary> /// Initialises a new instance of the OraclePermissionGeneratorWebServiceAPI.WebServiceApiBase class. /// </summary> /// <param name="userDataRepository">Dictionary object mapping unique user identifiers to OraclePermissionGeneratorDataInterfaceLayer objects. Stores a copy of the data model for all users of the web service API.</param> protected WebServiceApiBase(Dictionary<string, OraclePermissionGeneratorDataInterfaceLayer> userDataRepository) { this.userDataRepository = userDataRepository; containerObjectConverter = new ContainerObjectConverter(); trackingDataLogger = new NullTrackingDataLogger(); jsonSerializer = new ContainerObjectJsonSerializer(); }
protected void SetUp() { testLocation = new Location(); testLocation.Latitude = 35.6895; testLocation.Longitude = 139.6917; testLocation.SecondsSinceUpdate = 23; IpV4Address = new Byte[] { 192, 168, 2, 101 }; mocks = new Mockery(); mockTrackingDataLogger = mocks.NewMock<ITrackingDataLogger>(); testSoapWebServiceApi = new SoapWebServiceApi(new Dictionary<string, OraclePermissionGeneratorDataInterfaceLayer>(), mockTrackingDataLogger); testSoapWebServiceApi.AddUser(testUserIdentifier); }
/// <summary> /// Initialises a new instance of the OraclePermissionGeneratorWebServiceAPI.RestWebServiceApi class. /// </summary> /// <param name="userDataRepository">Dictionary object mapping unique user identifiers to OraclePermissionGeneratorDataInterfaceLayer objects. Stores a copy of the data model for all users of the web service API.</param> /// <param name="trackingDataLogger">The logger used to log tracking data.</param> public RestWebServiceApi(Dictionary<string, OraclePermissionGeneratorDataInterfaceLayer> userDataRepository, ITrackingDataLogger trackingDataLogger) : base(userDataRepository, trackingDataLogger) { }
/// <summary> /// Initialises a new instance of the OraclePermissionGeneratorWebServiceAPI.WebServiceApiBase class. /// </summary> /// <param name="userDataRepository">Dictionary object mapping unique user identifiers to OraclePermissionGeneratorDataInterfaceLayer objects. Stores a copy of the data model for all users of the web service API.</param> /// <param name="trackingDataLogger">The logger used to log tracking data.</param> protected WebServiceApiBase(Dictionary<string, OraclePermissionGeneratorDataInterfaceLayer> userDataRepository, ITrackingDataLogger trackingDataLogger) : this(userDataRepository) { this.trackingDataLogger = trackingDataLogger; }