1414
1515namespace Winton . DomainModelling . DocumentDb
1616{
17- public class EntityFacadeFactoryTests : IDisposable
17+ public class EntityOperationTests : IDisposable
1818 {
1919 private readonly Database _database ;
2020 private readonly DocumentClient _documentClient ;
2121 private readonly DocumentCollection _documentCollection ;
2222 private readonly IEntityFacadeFactory _entityFacadeFactory ;
2323
24- public EntityFacadeFactoryTests ( )
24+ public EntityOperationTests ( )
2525 {
2626 string documentDbUri = Environment . GetEnvironmentVariable ( "DOCUMENT_DB_URI" ) ;
2727 string documentDbKey = Environment . GetEnvironmentVariable ( "DOCUMENT_DB_KEY" ) ;
2828
29- var database = new Database { Id = nameof ( EntityFacadeFactoryTests ) } ;
30- var documentCollection = new DocumentCollection { Id = nameof ( EntityFacadeFactoryTests ) } ;
29+ var database = new Database { Id = nameof ( EntityOperationTests ) } ;
30+ var documentCollection = new DocumentCollection { Id = nameof ( EntityOperationTests ) } ;
3131
3232 _documentClient = new DocumentClient ( new Uri ( documentDbUri ) , documentDbKey ) ;
3333 _database = _documentClient . CreateDatabaseIfNotExistsAsync ( database ) . Result . Resource ;
@@ -87,7 +87,7 @@ public override int GetHashCode()
8787 }
8888 }
8989
90- public sealed class Create : EntityFacadeFactoryTests
90+ public sealed class Create : EntityOperationTests
9191 {
9292 [ Fact ]
9393 private async Task ShouldReturnCreatedEntityIfIdSet ( )
@@ -128,7 +128,7 @@ private async Task ShouldSetIdOnCreatedEntityIfUnset()
128128 }
129129 }
130130
131- public sealed class Delete : EntityFacadeFactoryTests
131+ public sealed class Delete : EntityOperationTests
132132 {
133133 [ Fact ]
134134 private async Task ShouldDeleteEntity ( )
@@ -147,7 +147,7 @@ private async Task ShouldDeleteEntity()
147147 }
148148 }
149149
150- public sealed class Query : EntityFacadeFactoryTests
150+ public sealed class Query : EntityOperationTests
151151 {
152152 [ Fact ]
153153 private async Task ShouldQueryEntitiesOfCorrectType ( )
@@ -186,7 +186,7 @@ private async Task ShouldQueryEntitiesOfCorrectType()
186186 }
187187 }
188188
189- public sealed class Read : EntityFacadeFactoryTests
189+ public sealed class Read : EntityOperationTests
190190 {
191191 [ Fact ]
192192 private async Task ShouldReturnEntityById ( )
@@ -230,7 +230,7 @@ private async Task ShouldReturnNullIfEntityWithIdNotFound()
230230 }
231231 }
232232
233- public sealed class Upsert : EntityFacadeFactoryTests
233+ public sealed class Upsert : EntityOperationTests
234234 {
235235 [ Fact ]
236236 private async Task ShouldCreateEntity ( )
0 commit comments