public ProfileControllerTests(ProfileFixture fixture) { _controller = fixture.Scope.ServiceProvider.GetService <ProfileController>(); _dao = fixture.Scope.ServiceProvider.GetService <IProfileDao>(); _attribute = fixture.Attribute; _profile = fixture.Profile; }
public Task CreateAttribute(YobaAttribute attribute, CancellationToken cancel = default) { using var db = _factory.Create(); return(db.Attributes .InsertAsync(() => new Attribute { Id = attribute.Id, Attribute_Column = attribute.Name, }, cancel)); }
public ProfileDaoTests(ProfileFixture fixture) { _dao = fixture.Scope.ServiceProvider.GetService <IProfileDao>(); _attribute = fixture.Attribute; _profile = fixture.Profile; }