public void ToggleClient_TogglesTheClientStatus() { _todelete = Api.CreateClient("Test Toggle Client"); Assert.Equal(true, _todelete.Active); var toggled = Api.ToggleClient(_todelete.Id); Assert.Equal(false, toggled.Active); }
public void UpdateClient_UpdatesOnlyChangedValues() { _todelete = Api.CreateClient("Test Update Client"); var updated = Api.UpdateClient(_todelete.Id, "Updated Client", details: "details"); // stuff changed Assert.NotEqual(_todelete.Name, updated.Name); Assert.Equal("Updated Client", updated.Name); Assert.NotEqual(_todelete.Details, updated.Details); Assert.Equal("details", updated.Details); // stuff didn't change Assert.Equal(_todelete.Active, updated.Active); Assert.Equal(_todelete.Currency, updated.Currency); }
public void CreateClient_ReturnsANewClient() { _todelete = Api.CreateClient("Test Create Client"); Assert.Equal("Test Create Client", _todelete.Name); }