public void Setup() { getResponse = Substitute.For <IRestResponse>(); connection = Substitute.For <IDeskApi>(); connection.Call(Arg.Any <string>(), Method.GET).Returns(getResponse); mapper = new DeskApiMapper(connection); }
public void Setup() { getResponse = Substitute.For<IRestResponse>(); connection = Substitute.For<IDeskApi>(); connection.Call(Arg.Any<string>(), Method.GET).Returns(getResponse); mapper = new DeskApiMapper(connection); }
public void Setup() { _getResponse = Substitute.For <IRestResponse>(); _connection = Substitute.For <IDeskApi>(); _connection.Call(Arg.Any <string>(), Method.GET).Returns(_getResponse); _connection.Call(Arg.Any <IRestRequest>()).Returns(_getResponse); _mapper = new CompanyMapper(_connection); }
public void Setup() { _getResponse = Substitute.For<IRestResponse>(); _connection = Substitute.For<IDeskApi>(); _connection.Call(Arg.Any<string>(), Method.GET).Returns(_getResponse); _connection.Call(Arg.Any<IRestRequest>()).Returns(_getResponse); _mapper = new CompanyMapper(_connection); }
public CompanyMapper(IDeskApi api) { _api = api; }
public DeskApiMapper(IDeskApi connection) { Api = connection; }