public void Delete_WhenCalledWithIntParameter_ShouldNotReturnNull() { // Arrange SocketController controller = new SocketController(_userManager, _roomRepository, _socketRepository, _timeTaskRepository, _authorizationService, _mqttAppClient, _mapper); // Act ViewResult viewResult = controller.Delete(1).GetAwaiter().GetResult() as ViewResult; // Assert Assert.NotNull(viewResult); }