public void ShouldReturn200whenSendValidCredentials() { var model = new Credentials { UserName = "******", Password = "******" }; var result = _controller.Login(model); Assert.IsType <OkResult>(result); }
private void Start() { Refresh(); AutorizationController autorization = new AutorizationController(); autorization.Login(); NickName.text = autorization.profile.UserName; }
// Start is called before the first frame update void Start() { AutorizationController autorization = new AutorizationController(); autorization.Login(); playerID = autorization.profile.UserName; chatClient = new ChatClient(this); chatClient.Connect(ChatSettings.Load().AppId, "0.1", new AuthenticationValues(playerID)); canvas = chatBoxToResize.parent.GetComponent <RectTransform>(); TouchScreenKeyboard keyboard; }
private void CreatePlayer() { EntryPoint[] points = FindObjectsOfType <EntryPoint>(); EntryPoint point = points.FirstOrDefault((x) => { return(x.mapCFG.ConfigId == Loader.Instance.priveousScene.ConfigId); }); AutorizationController autorization = new AutorizationController(); autorization.Login(); PhotonNetwork.LocalPlayer.NickName = autorization.profile.UserName; PhotonNetwork.Instantiate(playerOrigin, point.transform.position, point.transform.rotation); _connectAndReady = true; }