public async Task SetupAsync() { await _fluentEntity.InsertInto(_genreMocks).ExecuteAsync(); await _fluentEntity.InsertInto(_actorMocks).ExecuteAsync(); await _fluentEntity.InsertInto(_movieMocks).ExecuteAsync(); await _fluentEntity.InsertInto(_movieActorMocks).ExecuteAsync(); }
public async Task Test_Insert_Genre() { var genreName = "Drama"; var insertResult = await _fluentEntity .InsertInto(new GenreMock { Id = 1, RowVersion = DateTime.Now, Name = genreName }) .ExecuteAsync(); var selectResult = await _fluentEntity.SelectAll <GenreMock>().QuerySingleAsync(); insertResult.Should().Contain(1); selectResult.Id.Should().Be(1); selectResult.Name.Should().Be(genreName); }
private async Task FillGenres() { await _fluentEntity.InsertInto(_genreMocks).ExecuteAsync(); }
public IFluentEntityInsert FluentInsert(T value) { return(_fluentEntity.InsertInto(value)); }