public frmMemberList(UpdataType type) { InitializeComponent(); ApiClient = new MemberApiClient(Core.Client); controller = new MemberController(ApiClient); _type = type; }
public async Task WhenIPressAdd() { var httpClient = new HttpClient(); httpClient.BaseAddress = new Uri("https://pfeapim.azure-api.net/"); client = new MemberApiClient(httpClient); response = await client.CreateMemberAsync(request); }
public void Setup() { _restClientMock = new Mock <IRestClient>(); _subject = new MemberApiClient(_restClientMock.Object); }
public MemberController(MemberApiClient apiClient) { _apiClient = apiClient; }