public void TestGetAuthToken() { IFnsApiClient apiClient = FnsApiClientFactory.CreateClient(); var token = apiClient.GetAuthToken(MasterToken); Assert.IsTrue(!string.IsNullOrEmpty(token)); Console.WriteLine(token); }
public void TestGetReceiptDetails() { IFnsApiClient apiClient = FnsApiClientFactory.CreateClient(); var token = apiClient.GetAuthToken(MasterToken); Assert.IsTrue(!string.IsNullOrEmpty(token)); Console.WriteLine(token); var receipt = new Receipt { Date = new DateTime(2020, 1, 18, 15, 46, 0), Fp = "54411", Fd = "872811111", Fn = "9284000100258875", Sum = 225.40, Operation = 1 }; var result = apiClient.GetReceiptDetails(token, receipt, ClientAppId); Console.WriteLine(result.ToJson()); }