public async Task GetUserById_NoToken_Unauthorized() { // Arrange var userToFind = MockApplicationUsers.Get(4); var path = $"{Routes.UserRoute}/{userToFind.Id}"; // Act var response = await _endSystems.Get(path); // Assert Assert.Equal(HttpStatusCode.Unauthorized, response.Code); // Tear down _endSystems.Dispose(); }
public async Task GetTodo_NoToken_Unauthorized() { // Arrange var todoToFind = MockTodos.Get(14); var path = $"{Routes.TodoRoute}/{todoToFind.Id}"; // Act var response = await _endSystems.Get(path); // Assert Assert.Equal(HttpStatusCode.Unauthorized, response.Code); // Tear down _endSystems.Dispose(); }