public async void EditDevicePropertiesTest() { var editModel = _fixture.Create <EditDevicePropertiesModel>(); _deviceLogicMock.Setup(mock => mock.GetDeviceAsync(It.IsAny <string>())).ReturnsAsync(new DeviceModel()); var result = await _deviceController.EditDeviceProperties(editModel); Assert.NotNull(result); //TODO: doesn't work //var view = result as ViewResult; }