public async void Go_Should_Call_IWebImageClient_GetImage_If_Canvas_Parameter_Is_Supplied(string canvas, int expectedCalls) { await _hexbotifier.Go(null, null, null, null, canvas, null); _imageClient.Received(expectedCalls).GetImage <Rgb24>(canvas); }
public async Task <ActionResult> Get([FromServices] IHexbotifier hexbotifier, int?count = null, int?width = null, int?height = null, string seed = null, string canvas = null, bool?animate = null) { var response = await hexbotifier.Go(count, width, height, seed, canvas, animate); return(new FileContentResult(response.Image, response.ContentType)); }