Beispiel #1
0
 public ProfileControllerTests(ProfileFixture fixture)
 {
     _controller = fixture.Scope.ServiceProvider.GetService <ProfileController>();
     _dao        = fixture.Scope.ServiceProvider.GetService <IProfileDao>();
     _attribute  = fixture.Attribute;
     _profile    = fixture.Profile;
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 public ProfileDaoTests(ProfileFixture fixture)
 {
     _dao       = fixture.Scope.ServiceProvider.GetService <IProfileDao>();
     _attribute = fixture.Attribute;
     _profile   = fixture.Profile;
 }