Example #1
0
        public async Task DeleteJoystick()
        {
            var rep  = CreateMock <IDynItemController>();
            var ctrl = new JoystickManager(rep);

            var joystick = new Joystick {
                SerialServer = "Entry1", Id = 1, SerialServerUser = "******"
            };

            await ctrl.Delete(joystick).ConfigureAwait(false);

            await rep.Received().Delete(Arg.Is <int>(x => x == 1));
        }