public async Task GetUser() { //Arrange var userService = UserServiceMockFactory.GetUserService(); //Act var userData = await userService.GetUserDataAsync(); //Assert userData.Should().NotBeNull(); userData.Id.Should().Be(0); userData.Email.Should().Be("*****@*****.**"); userData.UserName.Should().Be("JonieJi29"); userData.Surname.Should().Be("Doe"); userData.Name.Should().Be("Jhon"); userData.PhotoUrl.Should().Be("https://i1.mosconsv.ru/287/400/800/90/kotek_iosif.jpg"); }
public async Task UpdateUser() { //Arrange var userService = UserServiceMockFactory.GetUserService(); //Act var userData = await userService.GetUserDataAsync(); userData.Email = "*****@*****.**"; userData.Name = "valek"; userData.PhotoUrl = ""; //Assert userData.Should().NotBeNull(); userData.Id.Should().Be(0); userData.Email.Should().Be("*****@*****.**"); userData.UserName.Should().Be("JonieJi29"); userData.Surname.Should().Be("Doe"); userData.Name.Should().Be("valek"); userData.PhotoUrl.Should().BeEmpty(); }