public async Task Test_Create_Creates_History() { var history = new History { Year = 2019 }; await controller.Create(history); context.MockHistory.Verify(x => x.Add(It.Is <History>(t => t == history))); }
public async Task Test_Create_Creates_History() { var history = new History { Year = 2019 }; await controller.Create(history); context.MockHistory.Verify(x => x.Add(It.Is <History>(t => t == history))); }