public async Task AddAsync() { Number model = new Number { FirstNumber = 1, SecondNumber = 2 }; var context = new ServiceController(logger.Object, dbContext); var respons = await context.AddAsync(model); logger.Verify( x => x.Log( It.IsAny <LogLevel>(), It.IsAny <EventId>(), It.Is <It.IsAnyType>((v, t) => true), It.IsAny <Exception>(), It.Is <Func <It.IsAnyType, Exception, string> >((v, t) => true))); }