public static void _1_SaveOrUpdate_Returns_Id(string datetime) { var target = new RestClient(BaseUrl); var request = new RestRequest("BraveService/SaveOrUpdate", Method.PUT); request.AddJsonBody(StubCreator.CreateRandomBrave(datetime)); var actual = target.Execute <int>(request).Data; actual.Should().BePositive(); }
public static void _1_SaveOrUpdateBrave_DoesNotThrowAsync_AndReturnsBraveId(string datetime) { var target = Container.Resolve <IBarContract>(); var actual = 0; Assert.DoesNotThrowAsync(async() => actual = await target.SaveOrUpdateBrave(StubCreator.CreateRandomBrave(datetime))); actual.Should().BePositive(); }