public async Task GetJoystickNull() { var rep = CreateMock <IDynItemController>(); var ctrl = new JoystickManager(rep); rep.Create(1).Returns(new Joystick { SerialServer = "Entry1", Id = 1, SerialServerUser = "******" }); var all = await ctrl.Get(2); all.Should().BeNull(); }