Beispiel #1
0
 public CreateWineCommand CreateWineCommand(CreateWineBody body, IDictionary <string, StringValues> headers) =>
 public void CreateWineCommand_Should_Throw_Null_Argument_Given_NullParameters(CreateWineBody body,
                                                                               IDictionary <string, StringValues> headers) =>
 Assert.Throws <ArgumentNullException>(() => _factory.CreateWineCommand(body, headers));
Beispiel #3
0
 public CreateWineCommand(string wineId, CreateWineBody body, IDictionary <string, StringValues> headers) : base(wineId, headers)
 {
     Body             = JsonConvert.SerializeObject(body);
     EventType        = "WineCreated";
     EventTypeVersion = "1";
 }