public async void Register() { var apiSettings = new FakeApiSettings(); var facade = new ApiFacade(new ApiExecuter(apiSettings), apiSettings); var result = await facade.Register("+79166728879"); Assert.AreNotEqual(result.ErrorCode,0); }
public async void Register() { var apiSettings = new FakeApiSettings(); var facade = new ApiFacade(new ApiExecuter(apiSettings), apiSettings); var result = await facade.Register("+79166728879"); 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); } }
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); } }