public async Task SetDateAndTimeSetting() { var rpcClient = new Mock <IRpcClient>(); var settings = new TimeSetting(); rpcClient.Setup(c => c.ExecuteTaskAsync <object>(It.IsAny <IRpcRequest>())) .ReturnsAsync(new object()); var obj = new OmvSystemClient(rpcClient.Object); Assert.IsNotNull(obj); var result = await obj.SetDateAndTimeSetting(settings); Assert.IsNotNull(result); }
public async Task <bool> SetDateAndTimeSetting(TimeSetting timeSetting) { var result = await _omvSystemClient.SetDateAndTimeSetting(timeSetting); return(result != null); }