public void UpdateWineCommand_Should_Throw_Null_Argument_Given_NullParameters(string wineId, UpdateWineBody body, IDictionary <string, StringValues> headers) { Assert.Throws <ArgumentNullException>(() => _factory.UpdateWineCommand(wineId, body, headers)); }
public UpdateWineCommand(string wineId, UpdateWineBody body, IDictionary <string, StringValues> headers) : base(wineId, headers) { Body = JsonConvert.SerializeObject(body); EventType = "WineUpdated"; EventTypeVersion = "1"; }