public void TryGetCollaborator_With_Null_Parameter_Should_Throw_ArgumentNullException() { var service = new CollaboratorsService(); Action act = () => service.TryGetCollaborator(null, out var projectCollaborator); act.Should().ThrowExactly <ArgumentNullException>(); }
public void TryGetCollaborator_With_Invalid_Parameter_Should_Return_Null(string id) { var service = new CollaboratorsService(); var result = service.TryGetCollaborator(id, out var projectCollaborator); result.Should().BeFalse(); projectCollaborator.Should().BeNull(); }