public void ShouldCreateServiceAsync() { // Arrange ISystemApi systemApi = CreateSystemApi(); ServiceRequest service = CreateService(); service.Id = null; // Act ServiceResponse created = systemApi.CreateServicesAsync(new SqlQuery(), service).Result.First(); // Assert created.Id.ShouldBe(1); Should.Throw <ArgumentException>(() => systemApi.CreateServicesAsync(new SqlQuery())); }