public void GetSelfOnResource_WithValidResourceWithNullLinks_ExpectException() { var resource = new TestResource(); var ex = Should.Throw <MissingLinkException>(() => resource.GetSelf()); _logger.WriteLine(ex.Message); }
public void GetSelfOnResource_WithValidResourceWithEmptyLinks_ExpectException() { var resource = new TestResource { Links = new HyperMediaLinks() }; var ex = Should.Throw <MissingLinkException>(() => resource.GetSelf()); _logger.WriteLine(ex.Message); }