Created
September 14, 2022 11:47
-
-
Save gerhart92/1c42633c8d63c73fac5699c4280ce134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public FieldCollection CreateFieldCollection() | |
{ | |
var db = Substitute.For<Database>(); | |
var item = Substitute.For<Item>(ID.NewID, ItemData.Empty, db); | |
var fieldCollection = Substitute.For<FieldCollection>(item); | |
return fieldCollection; | |
} | |
public FieldCollection CreateFieldCollectionByDatabase(Database db) | |
{ | |
var item = Substitute.For<Item>(ID.NewID, ItemData.Empty, db); | |
var fieldCollection = Substitute.For<FieldCollection>(item); | |
return fieldCollection; | |
} | |
public FieldCollection CreateFieldCollectionByItem(Item item) | |
{ | |
var fieldCollection = Substitute.For<FieldCollection>(item); | |
return fieldCollection; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment