public void GetTemplatedLinkOnResource_WithValidResourceWithNullLinksWithSingleTemplate_ExpectException() { var resource = new TestResource(); var ex = Should.Throw <MissingLinkException>(() => resource.GetLink(DefaultRel, DefaultToken1, DefaultToken1Value)); _logger.WriteLine(ex.Message); }
public void GetNonTemplatedLinkOnResource_WithValidResourceWithEmptyLinks_ExpectException() { var resource = new TestResource { Links = new HyperMediaLinks() }; var ex = Should.Throw <MissingLinkException>(() => resource.GetLink(DefaultRel)); _logger.WriteLine(ex.Message); }
public void GetTemplatedLinkOnResource_WithValidResourceWithNullLinksWithMultipleTemplate_ExpectException() { var resource = new TestResource(); var ex = Should.Throw <MissingLinkException>(() => resource.GetLink(DefaultRel, new Dictionary <string, object> { { DefaultToken1, DefaultToken1Value }, { DefaultToken2, DefaultToken2Value } })); _logger.WriteLine(ex.Message); }