public async void Auth() { var apiSettings = new FakeApiSettings(); var facade = new ApiFacade(new ApiExecuter(apiSettings), apiSettings); var result = await facade.Auth("+79166728879", "929672"); Assert.IsNotNull(result); }
public async void Auth(string phone,string password,bool isCorrectPassword) { var apiSettings = new FakeApiSettings(); var facade = new ApiFacade(new ApiExecuter(apiSettings), apiSettings); var result = await facade.Auth(phone,password); if (isCorrectPassword) { Assert.AreEqual(result.ErrorCode, 0); } else { Assert.AreNotEqual(result.ErrorCode, 0); } }
public async void Auth(string phone, string password, bool isCorrectPassword) { var apiSettings = new FakeApiSettings(); var facade = new ApiFacade(new ApiExecuter(apiSettings), apiSettings); var result = await facade.Auth(phone, password); if (isCorrectPassword) { Assert.AreEqual(result.ErrorCode, 0); } else { Assert.AreNotEqual(result.ErrorCode, 0); } }