Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public UpdateWineCommand(string wineId, UpdateWineBody body, IDictionary <string, StringValues> headers) : base(wineId, headers)
 {
     Body             = JsonConvert.SerializeObject(body);
     EventType        = "WineUpdated";
     EventTypeVersion = "1";
 }